How Targeted Ads Work
Do you get that creepy stalker feeling when seeing some ads? What you are seeing are retargeted advertisements. Retargeted ads are designed to capture the attention of the browser-window shoppers of the internet. While we continue our research around the web, they are tailored to redirect us back to just the right pair of socks.
If you are a website owner — like eBay, flipkart or Amazo — ad tech companies provide a few lines of code for your website. Whenever someone visits your site, the code drops a browser cookie that will mark you anonymously as someone who has visited this site. After that, whenever you load Facebook or any other website with ads, the advertising networks will look at the cookies on your computer using the information about which websites you’ve visited to choose which ad to display.