jasonB
jasonB

Reputation: 45

Why doesn't google analytics track specific user views and other activities?

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. enter image description here

Custom dimension settings

enter image description here

my google analytics debugger

enter image description here

Upvotes: 1

Views: 97

Answers (2)

Michele Pisani
Michele Pisani

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:

enter image description here

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

Related Questions