Keyword tracking with Adwords frustrated the sh*t out of me when I first started so I thought I’d create this little tutorial for you DP’ers, this tutorial will show you how to track you’re keywords right down to the match type using some php code on you’re landing page and a redirect. For you’re Adwords ads you would write the destination urls like this: http://yoursite.com/index.php?id= and assign an id to the end of each keyword, example: say you’re bidding on the keyword “make money online†and you’re bidding on all 3 mach types, you would write the destination urls like this… Broad match, http://yoursite.com/index.php?id=g1b Exact match, http://yoursite.com/index.php?id=g1e Phrase match, http://yoursite.com/index.php?id=g1p And for keyword 2 you would replace 1 from the id to 2, I use Adgrenade and Adwords editor which automates all that. Now that you’ve assigned a unique tracking id to each keyword you’ll need to place this bit of code on you’re site to catch the id and pass it on. <?php $seedvar=$_GET['id']; ?> Place that code above the opening html tag. Also you’re index page will need to be php not html. Just simply change the file extension from html to php. Now you will need to create a folder called “go†or something like “recommendsâ€, then open notepad and place this code inside… <?php $id=$_GET['tid']; header("Location:http://yourclickbankhoplink/?tid=$id"); exit(); ?> Don’t forget to change “yourclickbankhoplink†to your own. And then save the notepad file inside the go folder, just name the file something like “product name†eg: name of product you’re promoting. And save it with a php file extension, and upload it to you’re public_html folder on you’re web server. Now that you’ve done that you will link out to that php file like this… http://yoursite.com/go/productname.php?tid=<?php echo $seedvar;?> This bit of code tid=<?php echo $seedvar;?> on the end of each link will catch the tracking id and pass it on to the php file which then passes it on though you’re affiliate link. In a nutshell the php code I showed you first will catch the tracking id from you’re adwords ads and pass it on to you’re links that have this code tid=<?php echo $seedvar;?> on the end, then those links when clicked will pass the id to the php file, the php file will then catch that id and put it on the end of you’re affiliate link and send the visitor though it passing the id. If you have any questions feel free to ask.
Hi Jay, I tried following your code: <?php $id=$_GET['tid']; header("Location:http://yourclickbankhoplink/?tid=$id"); exit(); ?> To forward it to my clickbank hop link through cloacking in sub folder. However I've tested it. the tracking for the code does not seem to work.
It does work its the exact code I use, you must be doing something wrong, did you change the file extension from txt to php?
Hi, Can you guys tell me how I would set up tracking if I was using wordpress as my landing page? As there seems to be some problem with it - I think its to do with it not being php Andrew
Wordpress can support such kind of keyword insertion but wordpress is not a tracking software so you may have to use tools like prosper202 to track the keywords... but you can pass such id in wordpress landing page & do dynamic keyword insertion to improve QS
Thank you jayw1988 for this information. I've been braining, trying to figure out how to track at the keyword level, specifically from Adwords to Clickbank. I do have one clarifying question .. please excuse my ignorance on this. What if my Destination URL is not the home page but a landing page. Can I still follow the same example above and substitute landing page for index? Will changing html to php on landing page and inserting code there still track the same? Again, sorry if this is a stupid question.
You shouldn't have a problem doing that, just make sure you test it out before you start an Adwords campaign.