Return to Snippet

Revision: 19993
at November 10, 2009 17:30 by smoothdzion


Updated Code
onClick="javascript: pageTracker._trackPageview('/outgoing/example.com');"

Revision: 19992
at November 4, 2009 12:23 by smoothdzion


Updated Code
onClick="javascript: pageTracker._trackPageview("/G1/example.com");"

Revision: 19991
at November 4, 2009 12:21 by smoothdzion


Initial Code

                                

Initial URL
http://google.com/support/analytics/bin/answer.py?answer=72712&ctx=sibling

Initial Description
In order to track links out Google requires you add this snippet of JavaScript to your anchor(a) tag.  Replace /G1/example.com with whatever you want to use to identify the link.

Initial Title
Google Analytics - External Link Tracking

Initial Tags
textmate, google, links

Initial Language
JavaScript