Our problem is that, for keyword variable, we can get only what we forward from traffic source. For example if we get traffic from Google AdWords, we can use our keyword as variable. If we use phrase or broad match, our keyword may be way different than real query. My question is:
How can we grab real query from Google (referrer URL, “q”) and insert that at the end of our site’s URL as a variable? How would you resolve that with Perl/CGI?
Thanks
Now, I noticed that if we have part of the code in form:
"search.live.com" => "q",
it grabs the query string and takes it to our site.
But, if I change it to
"live.com" => "q",
it does not do it.
I sent this question to a coder that created this part. We'll see what he says.
Still, I wonder if you would know why this happens in this way? Is this about way of how coding has been done, or it has to do how CGI/Perl works?
If it’s about coding, I am guessing it may be about this part:
$url =~ /http:\/\/([^\/]+)\/(.+)/;
Although not a coder myself, this looks like it says “something after [”...]
Would that be why I need the full name of referring domain?
Thanks