Google keyword + editing my page from that keyword.

Status
Not open for further replies.

JennyAppleseed

New member
Dec 18, 2006
579
2
0
I'll Stab you!
Basically...

I'm advertising in adwords. Once a person clicks on my ad. Lets say they typed in the word Applesause into google. How do I make Applesause show up on my page multiple times?
 


Send them to a page like index.php?key=KEYWORD and then just get that using $_GET and input it in your page multiple times
 
I don't do Adwords shit, but I know you can put your keyword in the url. So you setup a script for this example it will just be index.php. Now you put this in it

PHP:
<?php

$keyword = $_GET['key'];

if (isset($keyword))
{

	// You put your content in here and whenever 
	// you want to print out the keyword, just 
	// use this <?=$keyword;?> and it will print out the keyword

}

?>

Then send your traffic to index.php?key=KEYWORD

I am sure there is a safe more secure way to do it, but this will work
 
  • Like
Reactions: JennyAppleseed
I don't do Adwords shit, but I know you can put your keyword in the url. So you setup a script for this example it will just be index.php. Now you put this in it

PHP:
<?php
 
$keyword = $_GET['key'];
 
if (isset($keyword))
{
 
    // You put your content in here and whenever 
    // you want to print out the keyword, just 
    // use this <?=$keyword;?> and it will print out the keyword
 
}
 
?>

Then send your traffic to index.php?key=KEYWORD

I am sure there is a safe more secure way to do it, but this will work

That right there gentlemen is how to aquire positive rep.
 
Hey, thanks for sharing that code. I like it. I think I might try this on an OSCommerce site.
 
If you're doing this to boost your google keywordRelevancy/QualityScore, you will get better results if you use modrewrite and pass the keywords not as querystring params, but as part of the url.........


So.....instead of.......

www.jenny.com/index.php?key=applesauce%20peaches

......you have.......

www.jenny.com/applesauce-peaches


the modrewrite would look something like:
Code:
<ifModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?key=$1 [QSA,L]
</ifModule>
 
Status
Not open for further replies.