I'd like to be able to track users clicking outbound links. It would be nice if we could specify an onclick event that could be added to outbound links like this:

onClick="javascript:urchinTracker ('/outgoing/linkname');"

where linkname is the name of the outbound url. Although I haven't tried this yet, it should then be possible to track clicks using Google Analytics. For more info, see:

http://forums.digitalpoint.com/showthread.php?s=45c2a6e7bacbde17a72aa196...

Alternatively (and this is my ideal solution) it would be grate if we could log the clicks to Drupal and not rely on G.A. I presume this would require an exit page, something like this:

http://example.com/myexitpage.php?url=http://example2.com/somepath

Comments

quicksketch’s picture

Status: Active » Closed (duplicate)