Kythin's Rants Kythin rants about all kinds of things, but mainly website development, SEO and PC Gaming.

21Feb/120

Track a link in Google Analytics then open it in a new window

This is a really quick post just so I have it saved somewhere. A simple function I wrote to track a link but also then open the link in a new window instead of the same one (even if you used a target=_blank)

Feel free to use it, change it, whatever!

tracktoblank.js

 

- K

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.