Forum Moderators: DixonJones

Message Too Old, No Replies

link tracking without redirects

google used to do it ..

         

mifi601

9:24 am on Aug 9, 2004 (gmt 0)

10+ Year Member



Apologies if this has been discussed before ..

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.

mifi601

12:27 pm on Aug 9, 2004 (gmt 0)

10+ Year Member



never mind, I found it

mifi601

4:38 pm on Aug 9, 2004 (gmt 0)

10+ Year Member



actually the darn script is only working in IE, not in Mozilla or Opera ... does anyone have any ideas, how to improve it?:

<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>