If I understand this question correctly, I do believe you are talking about ad targeting. This is how a website will display the ads that you see on the site.
In targeted advertising, they use a sophisticated method to show the ads online that people see. It can make you feel creepy like a person is following you around and watching your every move online. Here is how targeting advertising works.