Click to See Complete Forum and Search --> : OnClick question


mfus17
05-17-2003, 08:02 AM
Hello, I currently have some advertisers on my site with their banners and text links displayed. I want to put a script within those links that track visitors that come to them by clicking through those. Can anyone tell me how this can be accomplished? Thanks

Charles
05-17-2003, 08:21 AM
If I understand your request, onclick load an image. To track those clicks just check your server logs.

<a href="http://www.w3.org" onclick="window.img = new Image(); img.src='http://www.w3.org/Icons/WWW/w3c_home'">W3C</a>

requestcode
05-17-2003, 09:48 PM
You need to use a Server Side application for this. If you have access to PHP Here is a link to some scripts that should do the trick:
http://php.resourceindex.com/Complete_Scripts/Logging_Accesses_and_Statistics/Link_Tracking/

AdamBrill
05-18-2003, 09:21 AM
Another possible solution is to make a page with a counter on it that just forwards it to the real page. Then when they click on the link, it will bounce them off of the counter page and then go to the advertisers page. That is probably the easiest solution...