Skip to content

Instantly share code, notes, and snippets.

@itsdinkd
Created April 28, 2020 21:08
Show Gist options
  • Save itsdinkd/99f4a9b9fd8e836b196af5aaf807604f to your computer and use it in GitHub Desktop.
Save itsdinkd/99f4a9b9fd8e836b196af5aaf807604f to your computer and use it in GitHub Desktop.
GTM: clientID
function() {
// Modify customDimensionIndex to match the index number you want to send the data to
var customDimensionIndex = 1;
return function(model) {
model.set('dimension' + customDimensionIndex, model.get('clientId'));
}
}
@itsdinkd
Copy link
Author

in analytics variable set 'fields to set'
field name:
customTask

value:
{{clientID}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment