Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does this website know my GOOGLE Search String

I recently went to the WROX forum. I was led there by GOOGLE. On the top of the page I got this message

Welcome,  user.
Your Google search for 'bosh iis' brought you to Wrox Forum

Out of curiosity, does anyone know how could they track this?

Thanks!

like image 302
Jayesh Avatar asked Dec 16 '22 04:12

Jayesh


2 Answers

They can read the HTTP referrer header that contains the search string.

Simplifying a bit: someone clicks a link on a Google search results page (which has the search query as part of the URL) to some other page. This page can read the URL of the previous page (which was the Google search).

Using the same technique web developers can discover which pages have links to their page.

like image 54
Tomasz Nurkiewicz Avatar answered Jan 03 '23 09:01

Tomasz Nurkiewicz


From the HTTP header the website can get the referrer data, which means the page the originated the request for the page you are currently looking at, this way the website knows it was referred from Google, and by parsing the URL it can find out your search query.

More on HTTP referer: http://en.wikipedia.org/wiki/HTTP_referer

like image 23
Peled Roy Avatar answered Jan 03 '23 08:01

Peled Roy