Skip to content

Instantly share code, notes, and snippets.

@jeandcr
Last active November 9, 2018 11:25
Show Gist options
  • Select an option

  • Save jeandcr/0e63fbc9a4b89907ecad51f5ace6dce3 to your computer and use it in GitHub Desktop.

Select an option

Save jeandcr/0e63fbc9a4b89907ecad51f5ace6dce3 to your computer and use it in GitHub Desktop.
Client ID in GTM JS Variable
function(){
try {
var tracker = ga.getAll()[0];
return tracker.get("clientId");
} catch(e) {
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment