Jump to content

how to track user via link clicks?


jarv

Recommended Posts

Add this to your CSS.

a:visited { color: rgb(130,30,100); }

And then add this JavaScript to your page.

window.onload = function() {

var links = document.getElementsByTagName("a");

for(var i = 0, len = links.length; i < len; i++) {

if(links[i].style.color == "rgb(130,30,100)") links[i].innerHTML += " (*)";

}

});

Well, theoretically, yes, you could set it with the same code I posted above, just that instead of directly applying it, you'd have to set a document.cookie value and then evaluate the document again, but I think that the method I provided is simple enough.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.