This is my first custom dimension and when I try to use it in my Analytics custom report it says: There is no data for this view.
I created a custom dimension in GA property which gave me 1 as index
I created 2 variables in Google Tag Manager:
{{Analytics Settings}} variable with UA tracking number and I set custom dimension index to 1 and value to: Client ID
{{Set Client ID in Dimension 1}} variable with custom JavaScript
function() {
var customDimensionIndex = 1;
return function(model) {
model.set('dimension' + customDimensionIndex, model.get('clientId'));
}
}
Then I created a Universal Analytics Tag with:
Track type: PageView
Google analytics settings: {{Analytics Settings}}
Override: ticked
Field Name: customTask
Value: {{Set Client ID in Dimension 1}}
Triggering: All Pages
Then I also set up a trigger for the container: Page View
Am I missing a setting somewhere?