Forum Moderators: DixonJones
I am trying to track links WITHOUT redirection.
How do you guys do it? Do you use JS? maybe you have code hints?
I tried to check google, because they used to do something very sophisticated, that I did not understand at the time and now I can't seem to generate a search that would give me the function. Plus I would probably want something way simpler, that I can understand, rather than copy!
I believe they loaded an image with onClick, .. but do not know exactly.
<head>
<script language = "JavaScript" type="text/JavaScript">
function track(url)
{
trackingimg = new Image(1,1);
trackingimg.src = [url];
}
</script>
</head>
<body>
<a href="<?php echo $PHP_SELF?>" onClick="track('track.php')">track this link</a>
</body>