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

Is it possible to set custom page url parameter (named utmp in request), when tracking events with Google Analytics?

I have set custom url for tracking pages ['_trackPageview', 'www.my.url.com/...'] But that does not have effect for events.

share|improve this question
you are not supposed to include the full url in there, just the path: ['_trackPageview', '/your-new/path/article.html'] – uberconversion Apr 9 '13 at 12:35

You can use this:

_gaq.push(['_set', 'page', '/mypage']);

where /mypage is your virtual URL. Make sure you set the page before _trackPageview.

share|improve this answer

Read the Event Tracking Guide.

share|improve this answer
Can't find anything related there. – Pawka May 28 '12 at 4:08

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.