Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.