Last active
August 29, 2015 14:27
-
-
Save pekkis/9cf26c6089884d417f56 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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