开发者

Avoid Google Analytics from categorizing pop-up as entrance

in my google analytics account there is a page tracked usually opened as a javascript wi开发者_JAVA百科ndow.open() pop-up (same domain as referring page).

unfortunately, g.a. categorizes the pop-up page as entrance, although it is just a step in the whole navigation flow.

how can i avoid this?

thanks for your help!


You will need to use GA events.

On your popup page: (untested)

<script>
    window.opener.pageTracker._trackPageview(window.location.href);
</script>

and remove the existing tracking code from the popup entirely.


note: I'm not sure if this will be displayed as an "entrance." but it may be worth a shot.


http://aktagon.com/projects/jquery/google-analytics

This Jquery GA plugin has a lot of options, a big one being that you can set certain pages to be ignore/categorized in certain ways.

Also, If you setup a funnel or goal with regular expressions, you could set it to only match sites from your homepage and off (and not the popup.)


I don't know the solution here, but I do know the problem: window.open does not carry the HTTP referrer through (on some browsers at least), and without a same-site referrer Google Analytics considers a pageview to start a new (direct-access) session.

This blog post from 2006 has some possible solutions - I can't vouch for any of them though.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜