Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
"SnowPlow" -> "Snowplow". And added some tweaks into the HTML manual …
Browse files Browse the repository at this point in the history
…test pages
  • Loading branch information
alexanderdean committed May 8, 2013
1 parent a8d2f6e commit aaf586c
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 40 deletions.
4 changes: 2 additions & 2 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Significant portions copyright 2010 Anthon Pang. Remainder copyright
2012 SnowPlow Analytics Ltd. All rights reserved.
2012 Snowplow Analytics Ltd. All rights reserved.

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

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

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# snowplow.js: JavaScript tracking for SnowPlow
# snowplow.js: JavaScript tracking for Snowplow

## Introduction

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

## Find out more

Expand All @@ -16,7 +16,7 @@

`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]).

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

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

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

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

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

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion examples/ads/sync.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!--
! Copyright (c) 2012 SnowPlow Analytics Ltd. All rights reserved.
! Copyright (c) 2012 Snowplow Analytics Ltd. All rights reserved.
!
! This program is licensed to you under the Apache License Version 2.0,
! and you may not use this file except in compliance with the Apache License Version 2.0.
Expand Down
9 changes: 5 additions & 4 deletions examples/web/async.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!--
! Copyright (c) 2012 SnowPlow Analytics Ltd. All rights reserved.
! Copyright (c) 2012-2013 Snowplow Analytics Ltd. All rights reserved.
!
! This program is licensed to you under the Apache License Version 2.0,
! and you may not use this file except in compliance with the Apache License Version 2.0.
Expand All @@ -17,7 +17,7 @@
<title>Asynchronous website/webapp examples for snowplow.js</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

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

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

(function() {
Expand All @@ -36,7 +37,7 @@
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sp, s);
})();
</script>
<!-- SnowPlow stops plowing -->
<!-- Snowplow stops plowing -->

<!-- Example events -->
<script type="text/javascript">
Expand Down Expand Up @@ -100,7 +101,7 @@
'1' // quantity - required
]);

// trackTrans sends the transaction to SnowPlow tracking servers.
// trackTrans sends the transaction to Snowplow tracking servers.
// Must be called last to commit the transaction.
_snaq.push(['trackTrans']);

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

<!-- SnowPlow starts plowing -->
<!-- Snowplow starts plowing -->
<script type="text/javascript">
var spSrc = ('https:' == document.location.protocol ? 'https' : 'http') + '://d1fc8wv8zag5ca.cloudfront.net/0.11.2-M1/sp.js';
var spSrc = '../../js/snowplow.js'; // For testing
Expand All @@ -26,11 +26,13 @@
<script type="text/javascript">
try {
var snowplowTracker = SnowPlow.getTrackerCf('d3rkrsqld9gmqf');
snowplowTracker.trackPageView();
snowplowTracker.enableLinkTracking();
// snowplowTracker.enableActivityTracking(10, 10); Doesn't work yet, see https://github.com/snowplow/snowplow/issues/233
snowplowTracker.encodeBase64(false); // Default is true
snowplowTracker.trackPageView();
} catch ( err ) {}
</script>
<!-- SnowPlow stops plowing -->
<!-- Snowplow stops plowing -->

<!-- Example events -->
<script type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion js/snowpak.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Bash script to minify snowplow.js
# Depends on YUICompressor 2.4.2 and sed
#
# Copyright 2012-2013 SnowPlow Analytics Ltd
# Copyright 2012-2013 Snowplow Analytics Ltd
# License: http://www.opensource.org/licenses/bsd-license.php Simplified BSD


Expand Down
6 changes: 3 additions & 3 deletions js/src/banner.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*!
* SnowPlow - The world's most powerful web analytics platform
* Snowplow - The world's most powerful web analytics platform
*
* @description JavaScript tracker for SnowPlow
* @description JavaScript tracker for Snowplow
* @version 0.11.2
* @author Alex Dean, Simon Andersson, Anthon Pang
* @copyright Anthon Pang, SnowPlow Analytics Ltd
* @copyright Anthon Pang, Snowplow Analytics Ltd
* @license Simplified BSD
*/

Expand Down
6 changes: 3 additions & 3 deletions js/src/constructor.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* JavaScript tracker for SnowPlow: constructor.js
* JavaScript tracker for Snowplow: constructor.js
*
* Significant portions copyright 2010 Anthon Pang. Remainder copyright
* 2012-2013 SnowPlow Analytics Ltd. All rights reserved.
* 2012-2013 Snowplow Analytics Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand All @@ -15,7 +15,7 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Anthon Pang nor SnowPlow Analytics Ltd nor the
* * Neither the name of Anthon Pang nor Snowplow Analytics Ltd nor the
* names of their contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
Expand Down
6 changes: 3 additions & 3 deletions js/src/helpers.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* JavaScript tracker for SnowPlow: helpers.js
* JavaScript tracker for Snowplow: helpers.js
*
* Significant portions copyright 2010 Anthon Pang. Remainder copyright
* 2012-2013 SnowPlow Analytics Ltd. All rights reserved.
* 2012-2013 Snowplow Analytics Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand All @@ -15,7 +15,7 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Anthon Pang nor SnowPlow Analytics Ltd nor the
* * Neither the name of Anthon Pang nor Snowplow Analytics Ltd nor the
* names of their contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
Expand Down
6 changes: 3 additions & 3 deletions js/src/init.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* JavaScript tracker for SnowPlow: init.js
* JavaScript tracker for Snowplow: init.js
*
* Significant portions copyright 2010 Anthon Pang. Remainder copyright
* 2012-2013 SnowPlow Analytics Ltd. All rights reserved.
* 2012-2013 Snowplow Analytics Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand All @@ -15,7 +15,7 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Anthon Pang nor SnowPlow Analytics Ltd nor the
* * Neither the name of Anthon Pang nor Snowplow Analytics Ltd nor the
* names of their contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
Expand Down
6 changes: 3 additions & 3 deletions js/src/snowplow.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* JavaScript tracker for SnowPlow: snowplow.js
* JavaScript tracker for Snowplow: snowplow.js
*
* Significant portions copyright 2010 Anthon Pang. Remainder copyright
* 2012-2013 SnowPlow Analytics Ltd. All rights reserved.
* 2012-2013 Snowplow Analytics Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand All @@ -15,7 +15,7 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Anthon Pang nor SnowPlow Analytics Ltd nor the
* * Neither the name of Anthon Pang nor Snowplow Analytics Ltd nor the
* names of their contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
Expand Down
6 changes: 3 additions & 3 deletions js/src/tracker.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* JavaScript tracker for SnowPlow: tracker.js
* JavaScript tracker for Snowplow: tracker.js
*
* Significant portions copyright 2010 Anthon Pang. Remainder copyright
* 2012-2013 SnowPlow Analytics Ltd. All rights reserved.
* 2012-2013 Snowplow Analytics Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand All @@ -15,7 +15,7 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Anthon Pang nor SnowPlow Analytics Ltd nor the
* * Neither the name of Anthon Pang nor Snowplow Analytics Ltd nor the
* names of their contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
Expand Down

0 comments on commit aaf586c

Please sign in to comment.