Skip to content

Instantly share code, notes, and snippets.

@devilankur18
Created March 31, 2017 16:22
Show Gist options
  • Save devilankur18/7eb7e1b27220adfc61fe9d88a91b5af3 to your computer and use it in GitHub Desktop.
Save devilankur18/7eb7e1b27220adfc61fe9d88a91b5af3 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
;(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","//d1fc8wv8zag5ca.cloudfront.net/2.5.1/sp.js","snowplow_name_here"));
snowplow_name_here("newTracker", "cf", "collector.smugglr.co", {
appId: "3e2f2964-6c7c-4576-9b54-e48c7d3f5486",
platform: "web",
cookieDomain: '.smugglr.co',
discoverRootDomain: false,
// cookieName: "_sp534_",
encodeBase64: false,
respectDoNotTrack: false,
userFingerprint: true,
userFingerprintSeed: 6385926734,
pageUnloadTimer: 0,
forceSecureTracker: true,
useCookies: true,
post: true,
bufferSize: 5,
maxPostBytes: 45000,
// crossDomainLinker: function (linkElement) {
// return (linkElement.href === "http://acme.de" || linkElement.id === "crossDomainLink");
// },
cookieLifetime: 86400 * 31,
contexts: {
webPage: true,
performanceTiming: true,
gaCookies: true,
geolocation: false
}
});
snowplow_name_here('trackPageView');
// snowplow_name_here('enableActivityTracking', 30, 10);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment