Skip to content

Instantly share code, notes, and snippets.

@pekkis
Last active August 29, 2015 14:27
Show Gist options
  • Select an option

  • Save pekkis/9cf26c6089884d417f56 to your computer and use it in GitHub Desktop.

Select an option

Save pekkis/9cf26c6089884d417f56 to your computer and use it in GitHub Desktop.
<script>
"use strict";!function(a,b,c){a.cookieJar=a.cookieJar||function(){(a.cookieJar.q=a.cookieJar.q||[]).push(arguments)};var d=b.createElement("script");d.async=1,d.src=c;var e=b.getElementsByTagName("script")[0];e.parentNode.insertBefore(d,e)}(window,document,"//cookie-jar.frakt.io/tracker.min.js");
cookieJar(
'track',
'/url/which/we/track',
'username@example.com',
function(c) {
// the default banner
c.defaultBanner(true);
// request whether user has accepted terms
c.userHasGloballyAcceptedTerms(function(termsAccepted) {
console.log(termsAccepted, 'has accepted terms1 ');
});
c.userHasGloballyAcceptedTerms(function(termsAccepted) {
console.log(termsAccepted, 'has accepted terms 2');
});
// User's uuid
c.uuid(function(uuid) {
console.log(uuid, 'uuid');
});
}
);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment