Forums

This topic is locked

counting click throughs

Posted 01 Oct 2004 13:44:43
1
has voted
01 Oct 2004 13:44:43 Simon Bloodworth posted:
Hi,

If when a certain link is clicked how can i measure how many times it has been clicked - can i get it to write to a database the amount?

any help would be appreciated

Replies

Replied 10 Oct 2004 20:04:06
10 Oct 2004 20:04:06 Dean Blackborough replied:
If the link has a unique identifier (id from your database) then what I would do is the following.

On clicking the link the user gets taken to a blank page.
This page selects from your database the number of times the link has been clicked and the actual link url.
Increment and update the database with the new click through value
Via the header function send the user to the requested url

Well that is what I do on my site for the affiliate and banner links, only a couple of lines of code.

--------------------------------------
www.galleryof3d.com
(PHP and MySQL)
Replied 10 Oct 2004 20:32:43
10 Oct 2004 20:32:43 Simon Bloodworth replied:
many thanks for this.

what is the few lines of code that you use?
Replied 10 Oct 2004 20:32:43
10 Oct 2004 20:32:43 Simon Bloodworth replied:
many thanks for this.

what is the few lines of code that you use?

Reply to this topic