Advertisers call it behavioral targeting. Frankly I am in the business and I still hate it. Dare to look at a page on the John Lewis site and you'll be stalked by ads scrolling through the very products you just looked at. Creepy.
By the way John Lewis, I already bought a rug at Bentalls. On sale. Was just comparing your higher prices. So STOP the stalking.