开发者

Is there an easy way to track page link position in Google Analytics?

开发者 https://www.devze.com 2023-02-19 13:58 出处:网络
I just want to be able to know if a user is clicking via the left nav, top nav, bottom nav, entry body, etc.The equivalent functionality of this Omniture plugin.I googled arou开发者_运维技巧nd but I m

I just want to be able to know if a user is clicking via the left nav, top nav, bottom nav, entry body, etc. The equivalent functionality of this Omniture plugin. I googled arou开发者_运维技巧nd but I must not be phrasing my Google searches correctly.


The term you are looking for is "clickmap". Anyways, GA doesn't have built-in tracking for this but you can imitate it easy enough with event tracking.

The overall principle is to trigger an event, passing some values, whenever a link is clicked. Since you are just wanting basic information (what area of the page user clicks on, divided in sections), you would essentially just do the following for all your links:

<a href="url" onClick="_gaq.push(['_trackEvent', 'clickmap', 'left nav']);"some link</a>

'clickmap' would be the main category and would be the same value for all your links, and 'left nav' would be replaced with the designated area of the page.

You can of course hardcode it into all of your links but hopefully your html is coded well enough to be more programmatic about it, like for instance, use a framework like jQuery to dynamically append it to all the links in X area.

0

精彩评论

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