#1 ()  
Old 11-28-2007, 06:58 AM
Marcelo Marcelo is offline
Portuguese Moderator
 
Join Date: Dec 2006
Location: Brazil
Posts: 562
Thanks: 1
Thanked 3 Times in 1 Post
Default Tracking php redirect files

Hello!

I was wondering: is there a way to track that a php redirect file was clicked?

I am talking about this:



The file redirects , and I tried two counters but they don't work...

Thanks
__________________
SELLING domains: pokereinstein.com pokeronlinestrategy.com

SELLING sites: theonlinepokerlife.com (PR2) freepokerbook.net (PR1) five-card-draw.com (PR1)

WORKING on: pokerdicas.com afiliadospokeronline.com
Reply With Quote
  #2 ()  
Old 11-28-2007, 08:36 AM
PFO PFO is offline
Members
 
Join Date: Apr 2006
Posts: 235
Thanks: 5
Thanked 2 Times in 2 Posts
Default

Yes,

If you have a database, you can store click information everytime the redirect file is loaded. The number of hits will get updated according to what link was clicked.
Reply With Quote
  #3 ()  
Old 11-28-2007, 08:58 AM
Marcelo Marcelo is offline
Portuguese Moderator
 
Join Date: Dec 2006
Location: Brazil
Posts: 562
Thanks: 1
Thanked 3 Times in 1 Post
Default

Hmm...

How do I do that?

I have no database...
__________________
SELLING domains: pokereinstein.com pokeronlinestrategy.com

SELLING sites: theonlinepokerlife.com (PR2) freepokerbook.net (PR1) five-card-draw.com (PR1)

WORKING on: pokerdicas.com afiliadospokeronline.com
Reply With Quote
  #4 ()  
Old 11-28-2007, 10:51 AM
geoffvro's Avatar
geoffvro geoffvro is offline
Retired Billionaire
 
Join Date: Oct 2006
Posts: 120
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
I have no database...
use a flat file to store the data
Reply With Quote
  #5 ()  
Old 11-28-2007, 02:34 PM
ThePokerBank's Avatar
ThePokerBank ThePokerBank is online now
Über Member
 
Join Date: Jan 2007
Location: Wales
Posts: 874
Thanks: 1
Thanked 6 Times in 4 Posts
Send a message via MSN to ThePokerBank Send a message via Skype™ to ThePokerBank
Default

I'm interested in this also. Do I have to go into my cpanel to sort this out?

Can anyone give a quick guide?
__________________
Strategy Guides On How To Make Money As A New Poker Affiliate
Free Poker Content for your site/blog
Reply With Quote
  #6 ()  
Old 11-28-2007, 03:35 PM
themike537's Avatar
themike537 themike537 is offline
Members
 
Join Date: Jan 2006
Posts: 464
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via AIM to themike537 Send a message via Skype™ to themike537
Default

mikebrad wrote a great post about that here:

http://www.pokeraffiliateworld.com/f...direct+program
__________________
My Affiliate Blog
Reply With Quote
  #7 ()  
Old 01-16-2008, 12:14 PM
rceo rceo is offline
Junior Member
 
Join Date: Jan 2008
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ThePokerBank View Post
I'm interested in this also. Do I have to go into my cpanel to sort this out?

Can anyone give a quick guide?
This is easy for someone who knows mysql and php. But the following
tutorial is no use if you dont know anything about them. From an
experienced coder it would take about 5-30 minutes to setup
depending on the complexity of the page that prints the results.

What you need to do is:

1. create a new table to your mysql database with this query:

CREATE TABLE example(
id INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY(id),
count INT)

2. add this code to your php redirect page:

mysql_connect("servername","username","password");
mysql_select_db("yourdatabasename");
mysql_query("UPDATE example SET count=(count + 1) WHERE id='0'");
mysql_close();

3. to see how many clicks you had, you would create a page that
fetches the count and prints it out. This one could be the
"admin" page and require login, which would need some more code
Reply With Quote
  #8 ()  
Old 01-16-2008, 01:29 PM
mikebrad mikebrad is offline
Members
 
Join Date: Nov 2005
Posts: 751
Thanks: 0
Thanked 1 Time in 1 Post
Default

yeah, while that's cool and all of that, it doesn't differentiate between different clicks and different days, even.

Why not just use google analytics instead of trying to build something on your own. A little javascript within each link and viola, you can track it as simple or detailed as you like.
Reply With Quote
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 On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cheating by a affiliate website akhil_jks General Poker Affiliate Discussion 93 09-29-2007 04:03 AM
Need PHP Help PokerProp Web Design Q&A 1 09-02-2007 05:17 PM
php converstion Ridge Web Design Q&A 5 08-30-2007 01:49 AM
Cookies and tracking Jeremy General Poker Affiliate Discussion 4 03-31-2007 03:56 PM
301 redirect for affiliate links? Georgia Poker General Poker Affiliate Discussion 10 05-30-2006 04:24 PM


All times are GMT -5. The time now is 10:48 AM.


Copyright 2008 PokerAffiliatePrograms.com


SEO by vBSEO 3.2.0