You probably never give it much thought but every single thing you do on the internet can be tracked. This should explain how ad companies can know what you have been searching for and predict what products could interest you. It is also how a website knows when to cut you from its content due to your location.