Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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

2 Answers 2

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.

share|improve this answer
add comment

Read the Event Tracking Guide.

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

Your Answer

 
discard

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.