Created
April 28, 2020 21:08
-
-
Save itsdinkd/99f4a9b9fd8e836b196af5aaf807604f to your computer and use it in GitHub Desktop.
GTM: clientID
This file contains 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
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')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in analytics variable set 'fields to set'
field name:
customTask
value:
{{clientID}}