Google Answers Logo
View Question
 
Q: Need script to track outclicks ( No Answer,   1 Comment )
Question  
Subject: Need script to track outclicks
Category: Computers > Internet
Asked by: cashbagg-ga
List Price: $15.00
Posted: 19 Sep 2006 00:59 PDT
Expires: 19 Oct 2006 00:59 PDT
Question ID: 766510
I need a PHP script that will track out-clicks of all urls on my page.
I have found scripts, BUT they only track specific links.

For example. Say I have a daily link on my site from site
www.example.com. I link different content from that site daily
(www.example.com/blahblah.html), so each link is unique. I need a
script that will only look at the root URL and track those clicks. So
if I had linked 10 different pages of a site, the tracking will group
all 10 pages and count all clicks under the root url of
www.example.com only, rather than me having to add them all up.
Hopefully this makes sense to you.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Need script to track outclicks
From: nhunsaker-ga on 19 Sep 2006 09:13 PDT
 
This is simple. Just point all outbound links to a PHP script that
redirects then count hits on that script. For example, all traffic
goes to:
http://www.example.com/outbound.php?url=http%3A%2F%2Fwww.yahoo.com

That would load http://www.yahoo.com ;  note that you must URL encode
the outbound location because two instances of http:// (and/or
additional parameters) in the same request will screw things up.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy