Forum Moderators: DixonJones

Message Too Old, No Replies

Tracking Exit Destinations

         

James_WV

11:23 am on Dec 4, 2008 (gmt 0)

10+ Year Member



HI all,

is there any way in google analytics to track which websites users exit to?

tonynoriega

5:00 pm on Dec 4, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



yep, per google:

Google Analytics provides an easy way to track clicks on links that lead away from your site. Because these links do not lead to a page on your site containing the UTM JavaScript, you will need to tag the link itself. This piece of JavaScript assigns a pageview to any click on a link - the pageview is attributed to the filename you specify.

For example, to log every click on a particular link to www.example.com as a pageview for "/outgoing/example_com" you would add the following attribute to the link's tag:

<a href="http://www.example.com" onClick="javascript: pageTracker._trackPageview('/outgoing/example.com');">

It is a good idea to log all of your outbound links into a logical directory structure as shown in the example. This way, you will be able to easily identify what pages visitors clicked on to leave your site.

Important: if your pages include a call to _trackPageview, _setAllowLinker _trackTrans(), your Analytics tracking code must be placed in your HTML code above any of these calls. In these cases the tracking code can be placed anywhere between the opening <body> tag and the JavaScript call.

To verify that _trackPageviewis being called correctly, you can check your Top Content report 24-48 hours after the updated tracking code has been executed. You should be able to see the assigned pagename in your report.

James_WV

9:39 am on Dec 5, 2008 (gmt 0)

10+ Year Member



thanks tony