Count links clicked without changing them?



I noticed you put url=actualurl.com
was this a mistake or are you trying to count clicks on a site other than mysite.com

assuming the pages are on mysite.com:

first method is just include countclicks.php in each of the pages on the site

If you can't alter th code (encoded source or something)
.htaccess mod_rewrite can do this.

user's browser send mysite.com/actualurl as the url
mod rewrite changes it according to rules you create then passes it to apache as mysite/countclicks.php?url=actualurl

countclicks can then just record the click and then does either a header location redirect or just includes the file passed as the parm (that might get tricky if it isn't php.)
 
I noticed you put url=actualurl.com
was this a mistake or are you trying to count clicks on a site other than mysite.com

assuming the pages are on mysite.com:

first method is just include countclicks.php in each of the pages on the site

If you can't alter th code (encoded source or something)
.htaccess mod_rewrite can do this.

user's browser send mysite.com/actualurl as the url
mod rewrite changes it according to rules you create then passes it to apache as mysite/countclicks.php?url=actualurl

countclicks can then just record the click and then does either a header location redirect or just includes the file passed as the parm (that might get tricky if it isn't php.)

This method is exactly what I ment when saying I don't want to use, cause I want the links to stay intact.

Is there a way to do so without changing the links?
 
analytics tools like piwik track outbound links, you could use something like that and tap into the api
+rep
And yet another awesome tip. piwik looks pretty sweet and anything to get away from Google's Analytics gets my vote. Going to give it a go.