PDA

View Full Version : How to count hits from a specified URL



amy_girl
06-25-2007, 03:42 PM
Hello,

First, I like to thank you for reading my message.
I have a specified URL (link, eg. www.amygirl.com) on my domain www.russianbride72.com, I want to count hits every time a user click on this link (www.amygirl.com).
I dont' know how to do it from JS.
Can you please help me to create a simple script to track hits from a specified URL?

Thanks again.
Amy.

jscheuer1
06-25-2007, 04:13 PM
I don't believe that this can be done entirely in javascript. Javascript doesn't have anywhere permanent to store the hit data. There are third party hit counters - both visible and invisible, and with other options available many places (search with Google for 'hit counter'), many if not most of these are free, and your host may even have one or several available for your use - contact them or read/search your host's documentation.

amy_girl
06-25-2007, 06:46 PM
All hit counters online is to track web site, NOT individual link on a web page.
Can you help?
thanks.

jscheuer1
06-25-2007, 07:25 PM
Dig a little deeper:

http://www.mywebstats.org/

for instance offers (free):


What reports will I receive?

Page views and visitors by hour, day and month
Breakdowns by browser, language and system
Breakdowns by screen resolution and colour depth
Graphs and textual reports


The highlighted feature should get you the count for any particular page. This might be even better than counting the number of times a particular link was clicked.

Why exactly do you want this?

Also see (link click counters):

http://www.google.com/search?hl=en&client=opera&rls=en&hs=vst&q=link+click+counter&btnG=Search

and (click tracking):

http://www.google.com/search?hl=en&client=opera&rls=en&q=click+tracking&btnG=Search

amy_girl
06-25-2007, 08:20 PM
big thanks.
php link click is it.
thanks again.