1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How To Display A Different Landing Page?

Discussion in 'White Hat SEO' started by TheWicker, Apr 24, 2011.

  1. TheWicker

    TheWicker Power Member

    Joined:
    May 15, 2008
    Messages:
    576
    Likes Received:
    157
    How can I display a different landing page for all the visitors that are coming from google to my website through an exact keyword?

    Say if all the other visits come from searching the keywords "widget1", "widget2" and "widget3", etc. These go to the normal lander.

    But when someone searches "widget4" on google and enters my website, I'd like to display a different lander.

    How can I do that? I use wordpress.

    Thanks for your pointers.
     
  2. referraldude

    referraldude Registered Member

    Joined:
    Jan 19, 2010
    Messages:
    87
    Likes Received:
    50
    Location:
    The Devil's Den
    I believe Google webmaster tools allows you to split test, of you can find a split test plugin for WP if you Google a little bit. You can also track your sales funnel VIA Google analytics, just search for both and you plug the codes in either the header or footer of your site, depending on what it says. Hope this helps.
     
  3. ameerulislam10

    ameerulislam10 Newbie

    Joined:
    Apr 16, 2011
    Messages:
    48
    Likes Received:
    3
    Google will list the page that has the keyword "widget4" in the search results. It's not that your visitors will land on the index page all the time. if for example your page 4 has the keyword "widget4" then when some one search for that keyword and if your site qualifies google will list yourdomain/page4 (the page that has that keyword).

    Was that your question? I hope so.
     
  4. TheWicker

    TheWicker Power Member

    Joined:
    May 15, 2008
    Messages:
    576
    Likes Received:
    157
    @ameerualislam10 - I must have explained this really badly, that's not what I have asked at all.

    Some sort of split testing plugin would maybe do the job, but usually these would be splitting traffic in half or a certain user defined percentage, no?

    I don't need that, I only want that all the traffic that is coming from "keyword x" is being displayed a different landing page, because that would greatly improve my conversions.

    This is similar to say geotargeting, where you could display different landers to people in different countries/cities.

    Here what I want is to display different content, to visitors coming from google through a certain keyword.

    I hope this time I explained this a little bit better.
     
  5. crazyflx

    crazyflx Elite Member

    Joined:
    Nov 9, 2009
    Messages:
    1,674
    Likes Received:
    4,825
    Location:
    http://CRAZYFLX.COM
    Home Page:
    Are you talking about organic traffic or adwords traffic? Once I know that, I can likely give you a pretty decent answer.
     
  6. TheWicker

    TheWicker Power Member

    Joined:
    May 15, 2008
    Messages:
    576
    Likes Received:
    157
    Oops, should have mentioned that. It's organic traffic.
     
  7. ameerulislam10

    ameerulislam10 Newbie

    Joined:
    Apr 16, 2011
    Messages:
    48
    Likes Received:
    3
    I had doubt when I saw that your post count etc, you are not some one would ask such a simple question. I don't have idea what you are asking I guess. let see if any one comes with a decent answer now.
     
  8. crazyflx

    crazyflx Elite Member

    Joined:
    Nov 9, 2009
    Messages:
    1,674
    Likes Received:
    4,825
    Location:
    http://CRAZYFLX.COM
    Home Page:
    Easy enough, a little PHP magic will do the trick. Simply put this as the first bit of code on your site, above everything else (and this code should not be on "special-lander" or "regular-lander"):

    Code:
    <?
    $referrer = $_SERVER['HTTP_REFERER'];
    if (preg_match("/google/",$referrer)) {
        if (preg_match("/widget4/",$referrer)) {
          header('Location: http://www.yourwebsite.com/special-lander');
    
    } else {
          header('Location: http://www.yourwebsite.com/regular-lander');
    }};
    ?> 
    I just threw that together very quickly, and it is only one example of how to achieve what you're looking to do.
     
  9. Autumn

    Autumn Elite Member

    Joined:
    Nov 18, 2010
    Messages:
    2,197
    Likes Received:
    3,041
    Occupation:
    I figure out ways to make money online and then au
    Location:
    Spamville
    Slightly more elegant

    Code:
    <?php>
    
    // Enter your rediret keywords and your target urls
    $redirects = array(
    	'asswipe'   => 'http://www.google.com/',
    	'cunthole'  => 'http://www.pornhub.com/',
    );
    
    
    // Get referer
    $referrer = strtolower($_SERVER['HTTP_REFERER']);
    
    // Redirect google referrers
    if (strpos($referrer,"google")) {
    
    	//echo "Referrer: $referrer<br>\n";
    	if(preg_match('/q=([^\&|$]*)(\&|$)/', $referrer, $regs)) {
    		$keyphrase = $regs[1];
    		//echo "Keyphrase: $keyphrase\n";
    	} else {
    		echo "ERROR: No search keyphrase found\n";
    		exit;
    	}
    
    }
    
    
    // Redirect if required
    foreach($redirects as $key => $value) {
    	if($keyphrase == $key) {
    		header("Location: $value");
    	}
    }
    
    
    ?>
    
     
    • Thanks Thanks x 1
  10. crazyflx

    crazyflx Elite Member

    Joined:
    Nov 9, 2009
    Messages:
    1,674
    Likes Received:
    4,825
    Location:
    http://CRAZYFLX.COM
    Home Page:
    After thinking about it, you'll likely get deindexed pretty quickly by redirecting the user to a different page than the one they clicked on.

    I mean, if the user clicked on "http://yoursite.com/pageA" and because of the script above, they are redirected to "http://yoursite.com/pageB" because they used the magic "widget4" keyword phrase, it is almost a guarantee that you'll end up receiving some sort of punishment.

    What you're likely better off doing, is loading ONE url with dynamic content based on the referrer. Again, here is a quickly thrown together solution (and maybe Autumn can come along and "pretty it up" for me ;) )

    Code:
    <?
    $widget4content = file_get_contents('http://yoursite.com/widget4lander');  
    $referrer = $_SERVER['HTTP_REFERER'];
    if (preg_match("/google/",$referrer)) {
        if (preg_match("/[COLOR=Red]widget 4[/COLOR]/",$referrer)) {
          echo $widget4content;
    exit;
    }
    
    } else {
    };
    ?> 
    All you have to do, is make a special lander (http://yoursite.com/widget4lander), and upload it to your server. Nobody needs to know it exists....don't link to it anywhere or mention it anywhere. Simply upload it somewhere secret.

    What the above code will do, is when inserted as the first bit of code on your site (sitewide insertion, say for instance, in your header.php file), is this:

    Lets say User A googles "Widget 3" and they see your site as: "http://yoursite.com/pageA" in the SERPs and they click on it...they'll see that page exactly as you made it.

    Now, lets say User B googles "Widget 4" and they see your site as "http://yoursite.com/pageA" in the SERPs and they click on it, they WON'T be redirected to a different URL, BUT the page will dynamically rewrite itself on the fly and it will load "http://yoursite.com/widget4lander" as the pages content, but the URL will remain the same.

    Want to see the above script in action?

    First, visit this URL: http://freebiefindssite.info

    Now, google this:
    Code:
    site:http://freebiefindssite.info
    and click on any result (take note of the URL you've clicked on)...you'll see that BHW is what loads as the pages content, but notice that whatever URL you clicked on is still the same URL you're at?

    Here is how I put the code on that example site:

    Code:
    <?
    $widget4content = file_get_contents('http://www.blackhatworld.com');  
    $referrer = $_SERVER['HTTP_REFERER'];
    if (preg_match("/google/",$referrer)) {
        if (preg_match("/[COLOR=Red]site[/COLOR]/",$referrer)) {
          echo $widget4content;
    exit;
    }
    
    } else {
    };
    ?> 
    Have at it Autumn :)

    EDIT: Please mention whether or not you had a look at the example so I can remove that code from the site. It doesn't affect anything, but I'll forget to remove it and have it there forever and wonder a year from now what the hell it's doing there.
     
    • Thanks Thanks x 2
    Last edited: Apr 24, 2011
  11. ameerulislam10

    ameerulislam10 Newbie

    Joined:
    Apr 16, 2011
    Messages:
    48
    Likes Received:
    3
    Wow, so clever you are. I was thinking the same I mean if the page redirects Google might punish it. But with your new solution will that be safe as well?
     
  12. Autumn

    Autumn Elite Member

    Joined:
    Nov 18, 2010
    Messages:
    2,197
    Likes Received:
    3,041
    Occupation:
    I figure out ways to make money online and then au
    Location:
    Spamville
    Nice, that's a much more low key solution. I believe that Cuttsfag himself has said that if you're going to cloak, you're better off just changing the content rather than issuing a redirect (of course, he worded it as "serving different content to different users" or some similar doublespeak).

    With more aggressive cloaking, I've always found I get better results in terms of longevity by include()ing a full page ad rather than redirecting to a full page ad.

    My only addition would be to put the content for widget4lander in a separate directory and block it with robots.txt, it might do some good.
     
  13. marttali

    marttali Junior Member

    Joined:
    Sep 3, 2007
    Messages:
    154
    Likes Received:
    34
    you need ip based cloaking, don't know if there are any plugins for wp, probably is.
     
  14. crazyflx

    crazyflx Elite Member

    Joined:
    Nov 9, 2009
    Messages:
    1,674
    Likes Received:
    4,825
    Location:
    http://CRAZYFLX.COM
    Home Page:
    I agree, in fact, I might go so far as to make the widget4lander on an entirely separate domain and have that page in a separate directory and have it blocked with robots.txt.