I am in the process of co-branding part of my site, and it will not be hosted by me. So I would like to add a few lines of JavaScript to record all of the links that leave the co-branded site to anywhere else on the Internet.
I'm thinking of using JavaScript to listen for a link to be clicked that leaves the site, use that JavaScript to hit a 1 x 1 pixel on my acutal site and then record this to a database.
How in the world can I get JavaScript to listen to links off a specific page though without having access to the anchor tag directly?
Thanks for any ideas.
I'm thinking of using JavaScript to listen for a link to be clicked that leaves the site, use that JavaScript to hit a 1 x 1 pixel on my acutal site and then record this to a database.
How in the world can I get JavaScript to listen to links off a specific page though without having access to the anchor tag directly?
Thanks for any ideas.