Quite a popular question on various "mail mail" and other issues. But I wonder how this can actually be arranged. It is clear that "reading cookies that store search queries" is a huge misconception, because it is not safe to read cookies from other sites. I understand that information about what I visited and what I was looking for is stored on the servers of the same Google, for example.
But how does he identify me and give me advertisements? In theory, you can store an individual identifier of the search history in cookies, say for google.com. But then I can not send it from another site (example.com on which you need to display advertising), because again it is not safe. By IP address is also nonsense, because it can be dynamic, and all computers on the network, and not just me, would see advertising.
Or maybe this is all the browser does? The site does not have access to all this nonsense, and the browser has. And it turns out from another browser will not be such an advertisement?
In general, here are my arguments, I did not find the answer either on the Internet or in my "mental experiments."
UPD . For those who do not understand. The crux of the matter is not how information is collected. This is nothing complicated. The essence is as follows.
Information is collected on one site, well, let service.com. But we go from another site drugoi.ru. And here on this site a service from service.com is installed, which receives some information from the service.com site (using the example that I gave, Yandex Direct is the data where the user climbed and what the user was looking for, or immediately finished advertising). But in order to do this, he (the service from service.com, which is installed on the site drugoi.ru) needs to send something so that the site service.com understands, "Yeah, so this is the same dude who was looking for a washing machine yesterday, keep styralok advertising. " And I can not understand what it is and how it is transmitted. Considering that in this case, the possibilities for cross-domain service requests are limited, as it is embedded in another site.
Here in the comments they wrote that they can be stored in cookies, and make an advertisement in the frame. But about these services do not use frames, as far as I know.