Hey Guys,
I have this script to try and figure out how people are getting to my page and via what keywords, but it doesn't seem to be working. I tested the regex, that works, but I think adwords is changing the referring URL? Is there a way I can make the URL I'm calling contain the keywords? I think I read about that in Adwords help?
Here is what I have to test:
<?php $url_array = parse_url($_SERVER['HTTP_REFERER']); $varmix = $url_array['query']; preg_match("/q=(.*?)&/",$varmix,$result); echo "<!-- ".$varmix." -->"; ?>
How am I fucking this up?
Thanks,
Josh
I have this script to try and figure out how people are getting to my page and via what keywords, but it doesn't seem to be working. I tested the regex, that works, but I think adwords is changing the referring URL? Is there a way I can make the URL I'm calling contain the keywords? I think I read about that in Adwords help?
Here is what I have to test:
<?php $url_array = parse_url($_SERVER['HTTP_REFERER']); $varmix = $url_array['query']; preg_match("/q=(.*?)&/",$varmix,$result); echo "<!-- ".$varmix." -->"; ?>
How am I fucking this up?
Thanks,
Josh