3

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.

  • 1
    you are not supposed to include the full url in there, just the path: ['_trackPageview', '/your-new/path/article.html'] – David K. Apr 9 '13 at 12:35
1

You can use this:

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

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

-1

Read the Event Tracking Guide.

  • Can't find anything related there. – Pawka May 28 '12 at 4:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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