29
Feb

I have recently hinted in some of my comment replies towards the fact that I have been hitting the PPC game pretty hard this month. Aside from the fact that I have spent a good amount of money, I have learned so much about PPC its not even funny! During my PPC experiments I have been using wordpress blogs as landing pages, and have had some pretty good success (in my worst case I broke even). There are a couple of compelling reasons to use wordpress for a PPC landing page, they include, but are not limited to:

  • Fast, easy to setup
  • Google QS bot loves them as much as the Googlebot web spider
  • You can write FAKE comments/testimonials

This is great and all, but there is one thing you will find is very difficult to do using this method: Tracking keywords.

When you create your own static/HTML/PHP landing pages, you can include any kind of server side code in them you want. This is how many people track which keywords are converting and not converting. However, with wordpress, the software does not let you enter in PHP code directly into the posts, so its very difficult to track keywords using the /?keyword=example method. So whats an affiliate to do?

To solve this problem I started searching for a plugin that was made to specifically track keywords, and while I did find one, it just wasn’t exactly what I was looking for. Eventually I decided to just search for a plugin that would let me write PHP code directly into my wordpress blog entries, and I found just that with the PHP-EXEC for Wordpress. This plugin lets you enter working PHP code, right in your posts.

What do I do with it?

I’m going to go ahead and make the assumption that you have never written a line of PHP in your life, so hopefully you can follow this if you ever decided to use Wordpress as a landing page anytime in the future.

  • Install and activate the plugin. There is documentation on the plugin’s page to help you through this, its pretty simple.
  • Turn off the visual wordpress editor. To do this:
    • In the Wordpress admin panel, click “Users”
    • Select the user you use to write blog posts
    • In the upper left corner, untick “Use Visual Editor When writing”

02-29-08_visualeditor.png

Write a New Post, and insert the following code:

<?

$keyword = $_GET[’keyword’];
if($keyword == “”){
$keyword = “none”;
}

?>
Now you can write your affiliate URLs like this:


http://www.myoffer.com/blah/blah/?subid=<? echo $keyword; ?>

Thats it! Now you can use your affiliate networks subid tracking to figure out exactly which keywords are converting, and get rid of the ons that aren’t. If you are confused as to what all of this means, please see an example of how I did this HERE. Take note of what the URL says when you hover over a link!

Bonus!

As a sweet little bonus, you can also use

echo $some_text;

anywhere in the post, which means your can insert dynamic content based on the keyword the user entered, right inside of a blog post. Score.

Share this post: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
This entry was posted on Friday, February 29th, 2008 at 1:30 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or TrackBack URI from your own site.

8 Responses so far to "Wordpress Landing Page - Tracking Keywords"

  1. 1 Kunal
    March 1st, 2008 at 2:43 pm  

    Brilliant, Eric! Thanks!

    Geez, this is where my novice status comes into play, because while I am a computer engineer, and understand the PHP coding, I have no idea about this keyword tracking via PHP, and how it works.

    Yowzaaa!

  2. 2 Firelead
    March 1st, 2008 at 7:53 pm  

    this is fine if you actually trust your affiliate network to not steal your keywords. I’ve been running an affiliate network for over a year now, and have always recommended to my affiliates that they encrypt the subid value to protect themselves. I would recommend maybe storing that value to a database then encrypting it, then passing it back into the subid field. You can find a great tutorial here: http://oooff.com/php-affiliate-seo-blog/php-automation-coding/more-advanced-click-keyword-to-directtrack-system-conversion-tracking/
    You should write a post on how to do it and post it for your readers. Perhaps you can do it easier?
    -Mike

  3. 3 Eric
    March 1st, 2008 at 9:31 pm  

    Firelead,

    What I usually do is make a 1 to 1 mapping of my keywords to some generic identifier, and store it in an excel sheet. so I would have something like

    keyword1 = example1
    keyword2 = example2
    keyword3 = example3

    And in AdWords i would make a unique destination URL for each keyword.

  4. 4 Bob Angus
    March 11th, 2008 at 2:59 pm  

    This is an exceptional post. Thanks Eric!

    Firelead’s use of SubIds is right on. You have to do it to save time when building massive keyword lists, more than fear of your network. Of course the fun starts when you have to do a bunch of pivot tables in Excel to get the ROI calculation.

  5. 5 Cheeks
    March 24th, 2008 at 8:18 pm  

    Great post, but are you masking or redirecting affiliate links? I’m trying to find a way to redirect my affiliate links in wordpress (using redirection plugin) and use your php code to track my keywords. the php for the destination url won;t translate in the plugin. Any thoughts?

  6. 6 Sean
    April 20th, 2008 at 8:18 am  

    I’ve written a plugin to do something similar…

    http://ertw.com/~sean/landingpage/landingpage.phps

  7. 7 Andy
    April 30th, 2008 at 6:33 am  

    Nice post Eric.
    Does the same code work if you place it in the header (rather than the post itself? Then just use www.networklink.com/eg/eg/eg/?subid etc as your link as you described.
    Thanks

  8. 8 Binary Ant
    May 22nd, 2008 at 6:03 pm  

    Very interesting post. I have been wondering how to attack landing pages, with static code or with wordpress. This post has turned on a light in my head :)

Leave a reply

Name (*)
Mail (*)
URI
Comment