Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 2 down vote accepted

You have to tag external links individually, like so:

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

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

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


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.