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
  • 1
    you are not supposed to include the full url in there, just the path: ['_trackPageview', '/your-new/path/article.html']
    – David K.
    Commented Apr 9, 2013 at 12:35

2 Answers 2

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.

1
  • Can't find anything related there.
    – Pawka
    Commented May 28, 2012 at 4:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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