Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Directory Submission Service   I Sell Pagerank   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 02-12-2007, 04:51 AM   #1 (permalink)
Inactive
 
Join Date: 02-12-07
Posts: 1
iTrader: 0 / 0%
Latest Blog:
None

Madge_T is liked by many
* Track clicks on link

Hello guys!
I have a small and neat site with a couple of links.
I have searched the net and found several PHP scripts to track the
# of clicks on these links, but they all give an overview with grand totals
and I think it would be pretty neat to have an overview per day.

Does anyone of you use such a script? Would be great if it uses a simple
text file and gives a simple overview per day total # of clicks.

Thanks

Madge
-=-
Madge_T is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 02-12-2007, 09:37 AM   #2 (permalink)
v7n Mentor
 
JamieJelly's Avatar
 
Join Date: 03-09-06
Location: London UK
Posts: 2,796
iTrader: 0 / 0%
JamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest order
Here is an explanation of how it can be done without writing the code for you:

Create a MySQL database with a table for all the links you want to track.
The attributes would include an id (primary key) and a destination URL.

Create an exit.php file which takes a parameter from the URL and sends the visitor to the corresponding URL found in the database table you created. I.e

domain.com/exit.php?id=1 to send visitors to the first URL stored in your DB.

In your exit.php file, have some code that updates a log table in your database. The log table should have a date and time field as well as a link ID.

Then a simple MySQL query will be able to display all visitors to a particular link by date.
__________________
Bank charges
JamieJelly is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Track AdSense Clicks in Google CSE? oddcomments Coding Forum 1 02-22-2008 03:06 PM
Is possible to link AdSense with affiliate and to track...? ernest1a Webmaster Revenue 1 02-18-2008 07:20 AM
Track the clicks on AdSense Ads reteep Contextual Networks 8 12-20-2007 06:25 AM
Track Google AdSense Clicks Alexandro Contextual Networks 4 10-09-2006 11:25 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:37 PM.
© Copyright 2008 V7 Inc