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

Commit

Permalink
Invocation tag can now use either http or https
Browse files Browse the repository at this point in the history
  • Loading branch information
fblundun committed Jun 30, 2014
1 parent 54e696a commit 6f8f003
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/web/async-medium.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
;(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[];
p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments)
};p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1;
n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","../../dist/snowplow.js","new_name_here"));
n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","//d1fc8wv8zag5ca.cloudfront.net/2/sp.js","new_name_here"));

window.new_name_here('newTracker', 'cf', 'd3rkrsqld9gmqf.cloudfront.net', {
encodeBase64: false,
Expand Down
3 changes: 1 addition & 2 deletions examples/web/async-small.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
<!-- Snowplow starts plowing -->
<script type="text/javascript">

// Load sp.js
;(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[];
p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments)
};p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1;
n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","../../dist/snowplow.js","snowplow"));
n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","//d1fc8wv8zag5ca.cloudfront.net/2.0.0/sp.js","snowplow"));

window.snowplow('newTracker', 'cf', 'd3rkrsqld9gmqf.cloudfront.net', { // Initialise a tracker
encodeBase64: false, // Default is true
Expand Down
2 changes: 1 addition & 1 deletion tags/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@
// Insert the Snowplow script before every other script so it executes as soon as possible
g.parentNode.insertBefore(n,g);
}
} (window, document, 'script', '../../dist/snowplow.js', 'new_name_here'));
} (window, document, 'script', '//d1fc8wv8zag5ca.cloudfront.net/2/sp.js', 'new_name_here'));

0 comments on commit 6f8f003

Please sign in to comment.