measuring clicks (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


dpf -> measuring clicks (11/12/2005 10:20:08)

A client asked if there is a way to count the number of times a particular link ON her page is clicked? I didnt know the answer.




Taz -> RE: measuring clicks (11/12/2005 10:58:57)

quote:

Count link clicks: LiveCounter can also be used to record the number of times a particular link (a file download link for example) is clicked.


http://www.chami.com/counter/classic/




Kitka -> RE: measuring clicks (11/12/2005 12:11:38)

I use the free PHP script from here:

http://www.phpjunkyard.com/php-click-counter.php

It is really simple to set up and use.




Nicole -> RE: measuring clicks (11/12/2005 15:28:48)

Won't their webstats show how many times a particular page is viewed?




Kitka -> RE: measuring clicks (11/12/2005 17:48:40)

Maybe I thoroughly misunderstood, but I thought Dan meant exit click tracking. When someone clicks on link that goes from a page in your site to someone else's site.

None of the usual stats packages I have seen will do that.




dpf -> RE: measuring clicks (11/12/2005 18:21:45)

quote:

but I thought Dan meant exit click tracking.
yes




bobt -> RE: measuring clicks (11/13/2005 11:02:51)

Dan,
Why don't you send the link to a blank page called something like countclick.htm or whatever and then do a response.redirect on that blank page to the real destination of the link.
You can then count the hits on the blank page via the stats package.

Visitors won't even see the blank page.

Bob




dpf -> RE: measuring clicks (11/13/2005 11:05:36)

excellent idea!




Kitka -> RE: measuring clicks (11/13/2005 16:52:51)

Does this mean that if you have 100 links in a site you'd need 100 blank pages to redirect from? [sm=ask.gif]




dpf -> RE: measuring clicks (11/13/2005 17:20:24)

yes




womble -> RE: measuring clicks (11/13/2005 17:50:13)

as always, Dan's a man of few words [:D][;)]




dpf -> RE: measuring clicks (11/14/2005 8:09:44)

right..[8|]




womble -> RE: measuring clicks (11/14/2005 17:10:00)

[:D]




yogaboy -> RE: measuring clicks (11/15/2005 17:20:35)

You could add a querystring to the link with a code or name of the link, and on the "blank" page you could have a database connection that records the querystring and moves a counter field up by one. That way you only need one blank page.




womble -> RE: measuring clicks (11/15/2005 17:24:45)

[8|]I'd been wondering if that'd work too...




bobby -> RE: measuring clicks (11/15/2005 17:36:17)

you could even use ASP and the same method above to write the values to a .txt document instead of a database.

Or a seperate .txt file for each page you're tracking, that would be even easier.

more pages, but easier to code [;)]

<edit>
You know... thinking about it... if your server will let you use File System Object in ASP you could probably change the value on each .htm page.

Just open and replace a string with a new number...

That could get messy though... [8|]





Kitka -> RE: measuring clicks (11/15/2005 17:51:35)

quote:

you could even use ASP and the same method above to write the values to a .txt document instead of a database.


That is pretty much how the PHP script I mentioned above works - and very neatly too. Why reinvent the wheel?




yogaboy -> RE: measuring clicks (11/16/2005 5:47:23)

quote:

Why reinvent the wheel?


Because hopefully the inventors civilization will become subsumed by my own, and their name will be erased from all records - and then I can take the credit! [:D]




womble -> RE: measuring clicks (11/16/2005 17:07:21)

quote:

ORIGINAL: yogaboy

quote:

Why reinvent the wheel?


Because hopefully the inventors civilization will become subsumed by my own, and their name will be erased from all records - and then I can take the credit! [:D]

[img]http://ecanus.net/forumsmiles/slap.gif[/img] [;)]




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625