Reputation: 45
I create a custom dimension to track each user activities and set ga('set', 'dimension1', dimensionValue) . dimensionValue
is a user id when logged in. From the picture, it doesn't show any values and I have been waiting for more than 24 hours.
Custom dimension settings
my google analytics debugger
Upvotes: 1
Views: 97
Reputation: 14189
From your Google Analytics debugger I can see that the userId
and custom dimension 1
are not sent along with the pageview hit.
It appears that you have set then but they are not in the call:
So I think you are defining them after sending the pageview.
Check where they are in your code and enter those commands before send pageview or try incorporating them into the command itself, i.e. for custom dimensions like this:
ga('send', 'pageview', {
'dimension1': '6368'
});
Upvotes: 1
Reputation: 3847
Make sure that you're calling ga('set', ...)
before ga('send',...)
command. Also, check if there are any error messages in the console related to ga('set', ...)
Upvotes: 0