Forum Moderators: coopster
Im thinking that I can remove the product only when the referer is Google AdWords, but leave it for everyone else.
I am pretty sure that this isnt cloaking or doing anything too awful, but if it is, please let me know.
Can I remove content based on a URL parameter using PHP?
I am pretty sure that this isnt cloaking
It is cloaking - showing a different form of content based on who is viewing.
You'll need to check very carefully with the AdWords TOS that what you're doing is allowed.
If it is, yes, it's pretty simple. Using PHP you could do something like:-
if ($_GET('show_stuff') == '0') {
dont_show_your_stuff();
}
else
{
show_your_stuff;
}
Then the URL in your AdWords ad would have:-
&show_stuff=0
... tacked onto it.
TJ