Skip to content

Instantly share code, notes, and snippets.

@pekkis
Created August 24, 2015 14:19
Show Gist options
  • Save pekkis/c0646428cbfe396da1e4 to your computer and use it in GitHub Desktop.
Save pekkis/c0646428cbfe396da1e4 to your computer and use it in GitHub Desktop.
cookieJar(
'track',
'/url/which/we/track',
'[email protected]',
function(c) {
// the default banner (styles or not)
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');
});
// Get user's uuid
c.uuid(function(uuid) {
console.log(uuid, 'uuid');
});
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment