Reputation: 13
So I'm trying to fire a gaEvent passing some custom dimensions but I'm not sure how its done using GTM.
This code snipped below dispatch the gaEvent but when I inspect to see if the custom dimension was sent, it isn't shown in the 'custom dimension' tab of the tagmanager preview
gtm_dataLayer.push({
'event': 'gaEvent',
'gaEventCategory': category,
'gaEventAction': action,
'gaEventLabel': label,
'gaEventValue': value,
'gaDimension8': 'test'
});
Upvotes: 0
Views: 770
Reputation: 1633
With your current code you have sent the data into dataLayer. However, you need to be sure, that it is passed with the Universal Analytics tag. To do so, you need two things.
Also, please make sure, that the variable is created and enabled in Google Analytics.
Upvotes: 1