Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a site set up with Google Analytics (GA). I'm looking to find out what URL visitors are going to most frequently when leaving the site.

I know how to get the exit URL in the site itself that is the last place they are, but is the external URL they are going to tracked in GA? Does the browser even tell the page being moved away from what the next URL it is going to? If not, I assume Google determines exit pages from not seeing any more hits from that particular user.

Thanks, j

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You have to tag external links individually, like so:

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

All clicks on that link would be tracked as if they were going to a page on your site called "/outgoing/example.com".

This only works for tracking clicks on external links. Security measures built into JavaScript and browsers mean you'll never be able to determine where users go if they manually type a new URL into the address bar, or use a bookmark.

share|improve this answer
    
Gotcha, thanks. –  Justin Sep 3 '09 at 1:53

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.