Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm trying to use page level custom variables but I'm getting weird results.

Per each value of the variable, the custom variables report shows only a few visits (1-3), but many pages per visit (hundreds).

My tracking code is as follows:

_gaq.push(['my_tracker._setCustomVar', 1, 'Name', params['name'], 3]);

What am I doing wrong?

share|improve this question
Can you post in your entire Google Analytics tracking? Usually there is a lot more that _setCustomVar and _trackPageview. There has to be a _setAccount as well, and there may be others. – Stephen Ostermiller Nov 30 '13 at 22:14
sure. I have a _gaq.push(['my_tracker._setAccount', 'UA-XXXXXXX']); as part of the standard GA tracking code snippet before that, but nothing else. – davidrac Dec 1 '13 at 14:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.