1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

[How-To] Customize Content Based On Incoming Search Term

Discussion in 'Black Hat SEO' started by schwagoo, Feb 14, 2012.

  1. schwagoo

    schwagoo Senior Member

    Nov 8, 2010
    Likes Received:
    Midwest, USA
    How to insert custom HTML based on incoming search term.

    Why would you want to do this?
    Because it is in your best interest to give people the exact data they are looking for...they will stay longer and buy more.

    If they search for ?Laptop Repair? when your site is mainly focused on ?Computer Repair?, the user may assume that you don't work on laptops and bounce to another website. People are stupid and they need you to help them find what they are looking for.

    If you use this script to show customized content when the user clicks in searching for ?Laptop Repair?, then you can show banners and text that cater to LAPTOP REPAIR as if that is all you do :)

    You take the web visitor from thinking ?Hmm I see that they repair computers, but I will have to click around to see if they sell laptops...?

    With customized content they think ?Wow it looks like this place specializes in Laptop Repair, I will call them right now!!?

    Watch your bounce rate plummet and your conversions skyrocket.

    How do you do this?
    We have a table set up in the database with
    keyword_ID, Keyword_list, and keyword_HTML

    If you are like me, you don't really know how to do that. So you hire someone who does. Have your programmer do this and make you a GUI like I am showing below.

    Then the code does the hard work:

    The code is pasted below. Any programmer should be able to drop this into place without any trouble.

    Here is the GUI we build to make it easy to add/edit keywords and customize the content.




    • Thanks Thanks x 9
  2. Sprouts

    Sprouts Regular Member

    Mar 20, 2010
    Likes Received:
    I'm very surprised this thread hasn't been seen by more people. This is very useful stuff not only for customising content but if you have a custom built website, you can modify this code to track what users are searching to get to your website.

    Thanks OP, appreciate your post!
  3. BassTrackerBoats

    BassTrackerBoats Super Moderator Staff Member Moderator Jr. VIP

    Mar 10, 2010
    Likes Received:
    Generic Human Being
    As Close to Heaven as One Can Get!
    Home Page:
    That is FREAKING genius!

    I have no idea where you come up with some of the stuff you come up with but this is well past gold... I put this in the platinum region of ideas.

    I'm going to get my tech guys on this tomorrow for a bunch of my sites as I am sure it will increase my revenue... beers, booze and happy endings on me!
    • Thanks Thanks x 1
  4. madoctopus

    madoctopus Supreme Member

    Apr 4, 2010
    Likes Received:
    Full time IM
    Method works quite well. I also do something even more simple. I take the keyword they searched for and put at top of page:

    Looking for %keyword% ?
    Read below to find out more about this!

    What this does is:

    1. Increases time on page because they actually start to read through even if the original title of the page wasn't what they were looking for.
    2. Increases number of visited pages on site. When you combine this technique with good content they will get more interest in what you're writing about. The key is to hook them and then to make them curious about X and Y on your site.
    3. Increases conversions. Simply because they spend more time on site and become curious about X and Y. They're in a conversion funnel, they just don't know it.
    Obviously this doesn't work perfect by itself, you actually need to have a very user friendly site with good content.

    OPs method combined with mine also works well on dynamically generated sites that have spammy/generated content. I just put that on 1st page and say something like:

    If you're looking for %keyword% click here. On that page make sure you check out first link to get additional info about this.

    That takes them to another page. At this point they just did 2 pageviews. Also they have the idea that they should click on first link :)

    On the page I have the page title and beneath it I have a text ad. Below that I have text generated for that particular keyword. In the text I have a link to Amazon or whatever. Many will click either the ad or the link. The trick for all this to work is to actually generate that page around the keyword he was looking for :) That means the text is about (includes) that keyword more or less. Hence the ads are somewhat targeted.

    The method is not amazing or impressive but it does increase revenue a bit.
    • Thanks Thanks x 3
  5. Ramsweb

    Ramsweb Senior Member

    Mar 31, 2010
    Likes Received:
    Internet Marketer - Self Employed
    In front of my PC
    Awesome method man. I don't have sites that get general traffic, as most visitors come to the right landing page when they search for their respective keywords. However, for a person who owns a site with many incoming search keywords, I would think this is a goldmine. Thanks for sharing.
  6. kilauea999

    kilauea999 Regular Member

    Nov 14, 2011
    Likes Received:
    What's the behavior of the script if there are no search terms coming from the referrer? I.e. a direct visit? Just a default banner/whatever or simply nothing?

    This is a really nifty idea. I always used to see that SEO Search Terms Tagging 2 plugin display the search terms on the landing page, but this takes it to a whole other level.
  7. Taktical

    Taktical Elite Member

    May 15, 2011
    Likes Received:
    Jr.Executive VIP
    This is a big plus for anyone looking to up their conversions. Brilliant schwagoo
  8. TheMatrix


    Dec 20, 2008
    Likes Received:
    This is a great idea for sure mate..

    I hope someone can come up with a full fledged script to link the Analytics account, so the keywords are added automatically based on search priority and CTR.
  9. infinitehorizons

    infinitehorizons Regular Member

    Mar 8, 2011
    Likes Received:
    SEO | CRO | Global Strategic Sourcing and Partners
    You said it. This isn't sexy--but its immensely powerful.

    This is really important and valuable information, thank you for sharing with your BHW family Shwag!