Need a new web host or having a problem with a script? Tips and advice on the best way to design, build and maintain your most valuable asset - your website!

Multiple tracking codes

dewey
Posts: 68
Joined: 08 May 07
Trust:

Multiple tracking codes

Hi
I found the help from Sean and Adrian that explained how to redirect a click from a search engine to your site:

<?PHP

Header("Location: http://affiliate.product.hop.clickbank.net/?tid=xxxxxxx");
Exit;

?>

This is really great, and I use it now with success. However, I would like to track multiple ads with different ID codes. Up until now, I've had a separate folder on my site, each with its own PHP file for each ad to link to. This was good with a small amount of ads. Now I've got lots.

I'm not really sure how link hijacking works from a technical standpoint, but would it be safe for me to somehow pass an "ad ID code" to my PHP page, so I could have only that 1 PHP page on my site instead of hoards, and based on the ID code the page receives, it would know which site to direct the user to?


Thanks for the help!

-Dewey
  • 0
dewey
Posts: 68
Joined: 08 May 07
Trust:
AAck! I just noticed something. When I added the multiple folders, all with a separate PHP script to track each ad, Google upped my CPC rate by a bunch for almost all my keywords.

I take it the keyword quality score must have something to do with how long your redirect page has been in existence.

I didn't think Google would actually try to rank your keywords based on your in-between PHP redirect pages though...do they?

Thanks for your help

-Dewey
  • 0
Last edited by dewey on 06 Nov 07 9:12 am, edited 1 time in total.
 

PremiumMember
sean06
Posts: 1004
Joined: 16 Jun 06
Trust:
I didn't know they would do that, I've never noticed it myself.

Can't help you with the php though :)
  • 0
www.SixDayWeekend.com
Free Training Videos reveal how I make 6 figures while travelling the world
 
PremiumMember
chatyak86
Posts: 1085
Joined: 17 Jun 06
Trust:
Hmm I'm not too sure on that. I'm not PHP expert. I would suggest if you want to track multiple ads it is best to start off with multiple folders from the start. Try it on a new campaign if you can and see what it does to your CPC.
  • 0