Answer the question
In order to leave comments, you need to log in
Is it possible to find out the search query that led from the Google search results page?
At the moment, when navigating, for example, from such a search page: www.google.com/search?q=habrahabr+google+serp
following a link to habr, HTTP_REFERER is transmitted, depending on the browser, or simply " http://www.google.com
" in the case of chrome (for chrome, this the header is sometimes not transmitted at all) or for firefox " http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CC0QFjAA&url=http%3A%2F%2Fhabrahabr.ru%2Fpost%2F172965%2F&ei=8CKvUbX8K8KNtAaD-oH4BQ&usg=AFQjCNFaKBIsVaM6PhSGDxrtd3UYhCEkqw&sig2=OS6k-ooCBTN0t6Cbwmeh7A&bvm=bv.47380653,d.Yms
" for other browsers did not look. I'm mainly interested in these two.
Those. Google does not want to give the site normal information about the source of the transition. In cookies, too, nothing intelligible is transmitted.
How, using some Google API, to get information about the words of the search query, which led to the site from the search results page?
In Google cookies, it is probably transmitted acc. identifier, maybe there is such a thing in the Google Analytics API?
Answer the question
In order to leave comments, you need to log in
For transitions from http S ://google… the referrer is not transmitted.
googleblog.blogspot.com/2011/10/making-search-more-secure.html
blogs.webtrends.com/2011/10/our-response-to-googles-query-string-security-announcement/
www.seroundtable.com /google-ssl-drops-query-data-14188.html
Need to use webmaster tools or analytics…
Although the question was asked a year ago, no one answered it.
Regarding all the comments: Well, bydlokoders - write sites to housewives - and sculpt on it a bunch of counters from Google, Yandex and other crap ---
Just don't forget that they will slowly and surely lead you to spending and the more they eat - the more they will ask. (I'm talking about Yandex -)
A person may want to rid himself of the greatest number of dependencies.
Or create your own analytics service.
In short, the question is relevant again - but now I'll look here - maybe someone knows the answer. And while I went looking.
------------------------------
I'm adding:
So far I've found for Yasha
< ?php
$otkuda_prishol = $_SERVER["HTTP_REFERER"];
if ( strpos($otkuda_prishol, "yandex") ) :
$stroka_zaprosa = parse_url($otkuda_prishol, PHP_URL_QUERY);
parse_str($stroka_zaprosa, $parametri);
$poiskovii_zapros = $parametri['text'];
echo 'Hello, visitor from Yandex! You found this page with the following query: ';
echo $poiskovii_requests;
endif;
?>
“Maybe there is such a thing in the Google Analytics API?”
maybe even enough?
I don’t know where what is transmitted, but this is nonsense, don’t you think? - in place of Google, send a search query ...
Sorry, maybe I wrote a little rudely, but anyway, there is no such way for php and HTTP in general and they don’t know about any Google. And in GA there are many opportunities, but no more than Google itself programmed them ...
Monitor analytics, check with access-logs if “one place in another” does not give your feet rest.
Your idea is clear - for what requests do people come to my site?
But does GA not answer this question?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question