Skip to content

Commit aaf586c

Browse files
committed
"SnowPlow" -> "Snowplow". And added some tweaks into the HTML manual test pages
1 parent a8d2f6e commit aaf586c

13 files changed

Lines changed: 43 additions & 40 deletions

File tree

LICENSE.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Significant portions copyright 2010 Anthon Pang. Remainder copyright
2-
2012 SnowPlow Analytics Ltd. All rights reserved.
2+
2012 Snowplow Analytics Ltd. All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without
55
modification, are permitted provided that the following conditions are
@@ -12,7 +12,7 @@ met:
1212
notice, this list of conditions and the following disclaimer in the
1313
documentation and/or other materials provided with the distribution.
1414

15-
* Neither the name of Anthon Pang nor SnowPlow Analytics Ltd nor the
15+
* Neither the name of Anthon Pang nor Snowplow Analytics Ltd nor the
1616
names of their contributors may be used to endorse or promote products
1717
derived from this software without specific prior written permission.
1818

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# snowplow.js: JavaScript tracking for SnowPlow
1+
# snowplow.js: JavaScript tracking for Snowplow
22

33
## Introduction
44

5-
`snowplow.js` (or `sp.js` in minified form) is the JavaScript page and event tracking library for [SnowPlow] [snowplow].
5+
`snowplow.js` (or `sp.js` in minified form) is the JavaScript page and event tracking library for [Snowplow] [snowplow].
66

77
## Find out more
88

@@ -16,7 +16,7 @@
1616

1717
`snowplow.js` is based on Anthon Pang's excellent [`piwik.js`] [piwikjs], the JavaScript tracker for the open-source [Piwik] [piwik] project, and is distributed under the same license ([Simplified BSD] [bsd]).
1818

19-
Significant portions of `snowplow.js` copyright 2010 Anthon Pang. Remainder copyright 2012-13 SnowPlow Analytics Ltd.
19+
Significant portions of `snowplow.js` copyright 2010 Anthon Pang. Remainder copyright 2012-13 Snowplow Analytics Ltd.
2020

2121
Licensed under the [Simplified BSD] [bsd] license.
2222

examples/ads/async.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
22
"http://www.w3.org/TR/html4/loose.dtd">
33
<!--
4-
! Copyright (c) 2012 SnowPlow Analytics Ltd. All rights reserved.
4+
! Copyright (c) 2012 Snowplow Analytics Ltd. All rights reserved.
55
!
66
! This program is licensed to you under the Apache License Version 2.0,
77
! and you may not use this file except in compliance with the Apache License Version 2.0.
@@ -23,7 +23,7 @@ <h1>Asynchronous ad tracking examples for snowplow.js</h1>
2323
<p>
2424
<img src="images/banner-1.png">
2525
Banner ID 23, campaign ID 12, advertiser ID 201, user ID 1fd819ffc7267757ba681ff5daa3007e
26-
<!-- SnowPlow starts plowing -->
26+
<!-- Snowplow starts plowing -->
2727
<script type="text/javascript">
2828
var _snaq = _snaq || [];
2929

@@ -36,13 +36,13 @@ <h1>Asynchronous ad tracking examples for snowplow.js</h1>
3636
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sp, s);
3737
})();
3838
</script>
39-
<!-- SnowPlow stops plowing -->
39+
<!-- Snowplow stops plowing -->
4040
</p>
4141

4242
<p>
4343
<img src="images/banner-2.png">
4444
Banner ID 127, no campaign or advertiser ID set, user ID 2de819ffc724367ba681ff5daa6777e
45-
<!-- SnowPlow starts plowing -->
45+
<!-- Snowplow starts plowing -->
4646
<script type="text/javascript">
4747
var _snaq = _snaq || [];
4848

@@ -55,13 +55,13 @@ <h1>Asynchronous ad tracking examples for snowplow.js</h1>
5555
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sp, s);
5656
})();
5757
</script>
58-
<!-- SnowPlow stops plowing -->
58+
<!-- Snowplow stops plowing -->
5959
</p>
6060

6161
<p>
6262
<img src="images/banner-3.png">
6363
Banner ID 56ea2819ffc7da75f7e, no campaign, advertiser or user ID set
64-
<!-- SnowPlow starts plowing -->
64+
<!-- Snowplow starts plowing -->
6565
<script type="text/javascript">
6666
var _snaq = _snaq || [];
6767

@@ -74,7 +74,7 @@ <h1>Asynchronous ad tracking examples for snowplow.js</h1>
7474
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sp, s);
7575
})();
7676
</script>
77-
<!-- SnowPlow stops plowing -->
77+
<!-- Snowplow stops plowing -->
7878
</p>
7979
</body>
8080

examples/ads/sync.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
22
"http://www.w3.org/TR/html4/loose.dtd">
33
<!--
4-
! Copyright (c) 2012 SnowPlow Analytics Ltd. All rights reserved.
4+
! Copyright (c) 2012 Snowplow Analytics Ltd. All rights reserved.
55
!
66
! This program is licensed to you under the Apache License Version 2.0,
77
! and you may not use this file except in compliance with the Apache License Version 2.0.

examples/web/async.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
22
"http://www.w3.org/TR/html4/loose.dtd">
33
<!--
4-
! Copyright (c) 2012 SnowPlow Analytics Ltd. All rights reserved.
4+
! Copyright (c) 2012-2013 Snowplow Analytics Ltd. All rights reserved.
55
!
66
! This program is licensed to you under the Apache License Version 2.0,
77
! and you may not use this file except in compliance with the Apache License Version 2.0.
@@ -17,7 +17,7 @@
1717
<title>Asynchronous website/webapp examples for snowplow.js</title>
1818
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
1919

20-
<!-- SnowPlow starts plowing -->
20+
<!-- Snowplow starts plowing -->
2121
<script type="text/javascript">
2222
var _snaq = _snaq || [];
2323

@@ -27,6 +27,7 @@
2727
// Deprecated _snaq.push(['attachUserId', false]); // Don't attach &uid=xxx to the querystring
2828
_snaq.push(['enableActivityTracking', 10, 10]); // Ping every 10 seconds after 10 seconds
2929
_snaq.push(['enableLinkTracking']);
30+
_snaq.push(['encodeBase64', false]); // Default is true
3031
_snaq.push(['trackPageView', 'Async Test']); // Track the page view with custom title
3132

3233
(function() {
@@ -36,7 +37,7 @@
3637
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sp, s);
3738
})();
3839
</script>
39-
<!-- SnowPlow stops plowing -->
40+
<!-- Snowplow stops plowing -->
4041

4142
<!-- Example events -->
4243
<script type="text/javascript">
@@ -100,7 +101,7 @@
100101
'1' // quantity - required
101102
]);
102103

103-
// trackTrans sends the transaction to SnowPlow tracking servers.
104+
// trackTrans sends the transaction to Snowplow tracking servers.
104105
// Must be called last to commit the transaction.
105106
_snaq.push(['trackTrans']);
106107

examples/web/sync.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
22
"http://www.w3.org/TR/html4/loose.dtd">
33
<!--
4-
! Copyright (c) 2012 SnowPlow Analytics Ltd. All rights reserved.
4+
! Copyright (c) 2012-2013 Snowplow Analytics Ltd. All rights reserved.
55
!
66
! This program is licensed to you under the Apache License Version 2.0,
77
! and you may not use this file except in compliance with the Apache License Version 2.0.
@@ -17,7 +17,7 @@
1717
<title>Synchronous website/webapp examples for snowplow.js</title>
1818
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
1919

20-
<!-- SnowPlow starts plowing -->
20+
<!-- Snowplow starts plowing -->
2121
<script type="text/javascript">
2222
var spSrc = ('https:' == document.location.protocol ? 'https' : 'http') + '://d1fc8wv8zag5ca.cloudfront.net/0.11.2-M1/sp.js';
2323
var spSrc = '../../js/snowplow.js'; // For testing
@@ -26,11 +26,13 @@
2626
<script type="text/javascript">
2727
try {
2828
var snowplowTracker = SnowPlow.getTrackerCf('d3rkrsqld9gmqf');
29-
snowplowTracker.trackPageView();
3029
snowplowTracker.enableLinkTracking();
30+
// snowplowTracker.enableActivityTracking(10, 10); Doesn't work yet, see https://github.com/snowplow/snowplow/issues/233
31+
snowplowTracker.encodeBase64(false); // Default is true
32+
snowplowTracker.trackPageView();
3133
} catch ( err ) {}
3234
</script>
33-
<!-- SnowPlow stops plowing -->
35+
<!-- Snowplow stops plowing -->
3436

3537
<!-- Example events -->
3638
<script type="text/javascript">

js/snowpak.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Bash script to minify snowplow.js
44
# Depends on YUICompressor 2.4.2 and sed
55
#
6-
# Copyright 2012-2013 SnowPlow Analytics Ltd
6+
# Copyright 2012-2013 Snowplow Analytics Ltd
77
# License: http://www.opensource.org/licenses/bsd-license.php Simplified BSD
88

99

js/src/banner.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*!
2-
* SnowPlow - The world's most powerful web analytics platform
2+
* Snowplow - The world's most powerful web analytics platform
33
*
4-
* @description JavaScript tracker for SnowPlow
4+
* @description JavaScript tracker for Snowplow
55
* @version 0.11.2
66
* @author Alex Dean, Simon Andersson, Anthon Pang
7-
* @copyright Anthon Pang, SnowPlow Analytics Ltd
7+
* @copyright Anthon Pang, Snowplow Analytics Ltd
88
* @license Simplified BSD
99
*/
1010

js/src/constructor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* JavaScript tracker for SnowPlow: constructor.js
2+
* JavaScript tracker for Snowplow: constructor.js
33
*
44
* Significant portions copyright 2010 Anthon Pang. Remainder copyright
5-
* 2012-2013 SnowPlow Analytics Ltd. All rights reserved.
5+
* 2012-2013 Snowplow Analytics Ltd. All rights reserved.
66
*
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are
@@ -15,7 +15,7 @@
1515
* notice, this list of conditions and the following disclaimer in the
1616
* documentation and/or other materials provided with the distribution.
1717
*
18-
* * Neither the name of Anthon Pang nor SnowPlow Analytics Ltd nor the
18+
* * Neither the name of Anthon Pang nor Snowplow Analytics Ltd nor the
1919
* names of their contributors may be used to endorse or promote products
2020
* derived from this software without specific prior written permission.
2121
*

js/src/helpers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* JavaScript tracker for SnowPlow: helpers.js
2+
* JavaScript tracker for Snowplow: helpers.js
33
*
44
* Significant portions copyright 2010 Anthon Pang. Remainder copyright
5-
* 2012-2013 SnowPlow Analytics Ltd. All rights reserved.
5+
* 2012-2013 Snowplow Analytics Ltd. All rights reserved.
66
*
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are
@@ -15,7 +15,7 @@
1515
* notice, this list of conditions and the following disclaimer in the
1616
* documentation and/or other materials provided with the distribution.
1717
*
18-
* * Neither the name of Anthon Pang nor SnowPlow Analytics Ltd nor the
18+
* * Neither the name of Anthon Pang nor Snowplow Analytics Ltd nor the
1919
* names of their contributors may be used to endorse or promote products
2020
* derived from this software without specific prior written permission.
2121
*

0 commit comments

Comments
 (0)