How To Improve Your Landing Page Quality Score

by Wilson Mattos on March 16, 2009

When creating a Pay-Per-Click (PPC) campaign to test a new product or niche, you don’t want to spend a lot of time creating different landing pages for each Ad Group and/or keyword you want to target.  However, you need to make sure that your page is relevant to the user that clicks on your ad, and that your landing page is relevant for the keywords you are bidding on so that your “Quality Score” is high, and your prices are low!

I am going to give you the exact instructions for improving your landing page quality score by automatically generating relevant page title, H1 headings, and text specific for each of your PPC Ad Groups without having to create additional landing pages.  This will help you test a new campaign very quickly.  This trick uses PHP code, but you don’t have to worry because I am going to make it as simple as copy and paste.  No previous PHP knowledge required!

Here we go:

Step 1: Create your landing page using whatever method you are familiar with and name it “index.php”

Step 2: Paste the following code at the very top of the “index.php” file

<?php
  if ($_GET['keyword'] != "") {
    $keyword=ucwords(str_replace('-',' ',$_GET['keyword']));
  } else {
  $keyword="Default Phrase";
}
?>

Note: Update the 5th line to have your default text show up in case the parameter is not passed to index.php.  If you don’t know what this means, read the entire post and it will become clear.

Step 3: Anywhere on the page where you would like to use the custom text, place the following code, instead of the content you put there when you created the page:

<?php echo $keyword; ?>

Let’s say that your page title looked something like this:

<title>This is My Title</title>

You would change it to look like this instead:

<title><?php echo $keyword; ?></title>

Step 4: Upload the “index.php” file to your server and you are ready to use it.  However, I will show you another improvement in a second, so make sure to keep on reading.

Access the page with a browser, and you should see that the “default phrase” you entered in line 5 of Step 2 shows up.

Assuming your web server is www.mydomain.com and that you uploaded your index.php file to the root directory, access the page like this:

http://www.mydomain.com/?page=new-custom-title

You will now see that the title, and anything else (such as H1 heading) that you updated with the PHP code in Step 3 automatically updates on the page and shows up instead of the default text.

Note: Just separate the words in your phrase with “-” as I did in my example.

Now, when you create an ad group, you can use a URL that includes ?page=… to be super relevant to your keyword, which will help increase your Quality Score as well stick for the user whoc clicked in the ad.

BONUS Step: I don’t like the “ugly” URLs I showed you above, so I created yet another small hack that allows me to have “better looking” URLs.  Just paste this in your “.htaccess” file.  If you don’t have one, just create one and put the following code in place, then upload to your server.

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html index.php?page=$1 [NC,L]

Now, you can have the same effect as the example above by accessing the file as a “.html” file.  For example:

http://www.mydomain.com/new-custom-title.html

This code will automatically use the requested “.html” file name to generate the tags for you, as long as a real “.html” file with that name does not exist.  Again, just use “-” to separate the words.

You can do a lot more with this trick by using multiple variables to change text in multiple areas of the page with different text in each area.  The example above will get you started and I will leave the rest to your imagination!  :-)

{ 1 trackback }

Learn How to Run Your Own High Profit Webinars, Build Mind Maps, and Save Money to Boot! - WarriorForum - Internet Marketing Forums
August 22, 2009 at 12:03 AM

{ 11 comments… read them below or add one }

Chuck June 6, 2009 at 8:02 AM

Hey Wilson,

Great post. I’m very much interested in PPC, but not yet into it. I think Speed PPC, which is like a $450 program does exactly this. So if anybody is ’suspicious’ about this strategy, there’s no need to be so. It’s a proven fact that your landing page has to be optimized.
When I embark on PPC, I will use this. Thanks a lot, and you may have saved me $450.

Chuck Rabel

Wilson Mattos June 6, 2009 at 9:17 AM

@Chuck – Glad you found the post useful!

Wil

Options Trading Systems - Tony September 29, 2009 at 9:28 AM

Thanks Wilson.

Yes i’ve been using speed ppc on my own stuff. I haven’t been able to crack the code with that system. The only success i get is making ad groups manually and sometimes to specialized landing pages. But that is a lot of work. And my QS isn’t up to snuff a lot of the time. Need to get those clicks costs down. I’m going to try this on my custom campaigns. Whew. lot of work to do here…

Tim February 10, 2010 at 1:57 PM

Is there a way to add things like Bolding or Color changes as part of the URL string?

Wilson Mattos February 10, 2010 at 2:01 PM

Sure, you can use CSS.

If you want to change the style based on a variable in the URL, just add that as a variable to the PHP function and possible use that value as the CSS class for that element (h1 heading for example). Then your CSS can have all the possible options to display the correct style you want based on the variable you passed.

There are other ways of doing this as well, but this should do.

Wil

Farid February 18, 2010 at 10:34 PM

Thanks a lot for sharing this. I have implemented a similar trick but this seems to more effective…Anyway thanks.

Brendan Will February 24, 2010 at 8:13 PM

Hey Wil,

You might want to include some sanitation into your script. If someone worked out your were doing this they could possibly create a XSS attack by injecting code.

differentmed March 1, 2010 at 3:33 AM

very useful post about landing page quality. I used this and my Quality page rank increase from 5 to 7
Thanks
Differentmed

BLee March 28, 2010 at 10:29 AM

Hey Wil,

I just tried implementing your code into my site:

However, I only see my default keyword when I try testing the site with specific keywords. Any reason why this is? Any input would be appreciated.

Thanks!

Wilson Mattos March 29, 2010 at 5:14 AM

@blee,

Double check the PHP code and make sure you are sending the correct variable in the URL without spaces, etc. Can you post a sample URL you are trying to use? You can mask the domain name.

Wil

Prakash May 29, 2010 at 8:32 PM

Yes, I came back to this page just to say thanks. This is great idea to improve quality of score. Guess what? I increased my quality of score from 1 to 7. I recommend everyone to follow this article, you will find gold mine!

Leave a Comment

Previous post:

Next post: