Forum Moderators: DixonJones

Message Too Old, No Replies

tracking clicks to external sites help

how to count them?

         

silverbytes

7:35 pm on Dec 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I need to count how many visits my site is giving to other sites. I put html text links that point to an php redirect page.
So a page called exit.php is redirecting clicks to several urls depending o the link clicked (that provides the external url).
I saw a raw log and fine! There is the hit to my exit.php and string containing the external url too.

But now:

How can I measure that? My log analyzer doesn't help.
And counting hits to exit.php is not enough (because that collect several clicks for different sites)
I want to determine how many visits I'm sending monthly to each external site.

Is there any php script, tool or free service for that?
Thank you!

ukgimp

8:59 am on Dec 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to record the "hit" in a database.

If a link is clicked it goes to your traking page, updates a feild (value + 1) in the DB and then redirects to the page. Then you have a a count.

Try hotscripts for click counter. You dont say what platform you have at your disposal. I tried messing around with doing it with text files, but it was easier to get a host with a db. Access works, but mysql would be better when reading and writing.

Receptional

9:11 am on Dec 4, 2003 (gmt 0)



If you use a different exit page for each redirect, you can just put a counter on that page, which only clocks up if there is a place to redirect to. The advantage being that you can then let your customers log on to that page at any time to see their performance.