Outbound Link Tracking

liunx

Guest
I produce outdoor events (think running races and mtn bike races) and have sponsors for each race. On the sponsors page there are various sponsor logos which link the the sponsors homepage. Is there a way to track the number of times people click those logos and go to the sponsors homepage? The reason I want to collect this information is to be able to tell sponsors that on avg they receive X number of clicks per month.<br /><br />Thanks!<!--content-->
I'm sure you can find something over at hotscripts.com.<!--content-->
Looks like I'll wait for either:<br /><br />Crazy Egg: <a href="http://www.crazyegg.com" target="_blank">www.crazyegg.com</a><br /><br />or<br /><br />Google Analytics :<a href="http://www.google.com/analytics" target="_blank">www.google.com/analytics</a><br /><br />as both track outbound links (among outher things). Crazy Egg has the cool factor however. Both are currenlty invite only though. I've heard Crazy Egg goes live in April.<!--content-->
If you were wanting something really simple, it seems that you could have all of your sponsor links point to a php page with a specific variable.<br /><br />The recieving PHP page could check the incoming variable to know who the sponsor was, update the database, and then redirect the user on to the sponsor's homepage.<br /><br />All of this would take less than a second, and you could impelment it right now.<br /><br />So lets say I had two sponsors: Acme and Emca (Acme backwords).<br /><br />For the sponsor link, when somebody clicks on the acme logo, the target page would be something like <br /><br />"http://www.mysite.com/redirect.php?sponsor=acme"<br /><br />A link to Emca would be:<br /><br />"http://www.mysite.com/redirect.php?sponsor=emac"<br /><br />Then you would create the redirect.php file which would <br /><br />1. connect to the database.<br />2. get the value from the database of the previous number of clicks for that sponsor.<br />3. Add one to that value.<br />4. Restore the value in the database.<br />5. Disconnect from the database.<br /><br />Then you would have an if statement for each sponsor. The basic structure is:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if sponsor="acme"<br /> {redirect code to redirect to acme's website}<br />else if sponsor="emca"<br /> {redirect code to redirect to emca's website}<!--c2--></div><!--ec2--><br /><br />It seems like this process would take less than a half an hour to set up completley.<br /><br />Then when you wanted to check the number of clicks to a sponsor, you would just go to your database and look. When you wanted to reset your counter, you would just go to your database and reset it.<br /><br />Its a quick-n-dirty way to do it, and I'm sure the other sites you've looked at have more features/etc. But this is a simple way you could get it running today.<!--content-->
Paul,<br /><br />that's a really good/simple way of doing it. I'm not very well versed in php/mysql however. Do you know of a website that could give me the basics needed for this solution in a somewhat timely manner? I'm certainly up for learning more.<br /><br />Thanks!<!--content-->
Yes Hotscripts is a great resource<br /><a href="http://www.hotscripts.com/PHP/Scripts_and_Programs/Click_Tracking/index.html" target="_blank">link trackers</a><br />many free ones.<!--content-->
Hotscripts is the best place for free PHP scripts.<br /><br />If you're looking for help setting this up, feel free to email me. <br /><br />(if that's against TCH forum rules, please remove)<!--content-->
<!--quoteo(post=171350:date=Mar 24 2006, 02:02 PM:name=kfordham281)--><div class='quotetop'>QUOTE(kfordham281 @ Mar 24 2006, 02:02 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=171350"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->Paul,<br /><br />that's a really good/simple way of doing it. I'm not very well versed in php/mysql however. Do you know of a website that could give me the basics needed for this solution in a somewhat timely manner? I'm certainly up for learning more.<br /><br />Thanks!<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />I meant to say: Do you know of a website that could help teach me the basics needed for this solution in a somewhat timely manner? I'd really like to learn to code this myself too.<br /><br />I'll have a look at hotscripts though as well. I've looked there before for scripts.<!--content-->
Search for <a href="http://www.google.com/search?q=php+tutorials&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:eek:fficial" target="_blank">PHP tutorials</a> using Google, you'll find pages and pages of help sites.<!--content-->
 
Top