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!



– K

Leave a Reply