Forum Moderators: open
Eg, map the {keyword} in the ad to a special page on your site that says:
keyword - 50% off today only
My suggestion would be to use a scripting language if you want to do all keywords this way, or set up a webservice that generates a new page customized on your ad campaign / keyword buy / media placement / etc. Mapping creative on page to off page advertisements does increase conversion rates :)
Within your code, grab the keyword out of your URL like this:
<%=Request.QueryString("keyword1")%>
In this case, your url might be:
[****.com...]
$referrer = $HTTP_REFERRER;if (preg_match("'(&¦\?)(p¦q¦qry¦origq¦as_epq¦as_q¦query¦qkw¦vp¦search_for¦queryterm¦szukaj¦searchfor¦Keywords¦va¦MT)=([^&]+)'", $referrer, $matches))
$var_keywords = $matches[3];
else
$var_keywords = "none";
I don't use it to display the keywords in ads. I just use it for my web stats. I am not sure how effective it will be if you use the extracted keywords in your ads. If someone seraches for say "how to create my own blue widgets" than your ad will say something like "how to create my own blue widgets" - now 50% off! Looks pretty unprofessional in my opinion.
Thanks for the code, I've been playing with a number of code bits and yours works best. I threw it into a function for my own analysis stuff:
function Simplextract ($refurl){if (preg_match("'(&吒?)(p妁妁ry她rigq地s_epq地s_q妁uery妁kw宅p存earch_for妁ueryterm存zukaj存earchfor妄eywords宅a危T)=([^&]+)'", $refurl, $matches)) {
$var_keywords = $matches[3];
$var_keywords = stripslashes(urldecode(strtolower(trim($var_keywords))));
}
if ($var_keywords){
return $var_keywords;
}
return;
}