When a page is loaded, our tracker sends us information in what we call a hit.
This hit contains the referrer which represents the URL of the previous page, this information is provided by the browser itself.
Thanks to this information, we are able to identify the search engine used to access the site. We maintain an internal list of all the URLs associated with a search engine and it is updated when new engines appear.