hi all i am trying to hide content for a ppc campaign, so if they come from the link they will have something like "/?utm_source=google" on the url
Ive got the following but it only works for that exact url
var url = "http://mysite.com/?utm_source=google";
if (location.href==url){
$('div').hide();
}
Ideally it needs to work for multiple pages i.e. http://mysite.com/page-one/?utm_source=google
Just wondering if anyone knows a way around this?