Google knows the sites you've been too, how long you were there, what you did and where you clicked, and they have this history of you for a long time (assuming you keep the cookies enabled and don't delete them) but the real question is: why do you care?
It's all to easy to think of it as spying, but in the end, Google is building up this mountain of data on how you browse the internet, all this invasive data which is linked inextricably to you, and then using it to server you adverts for Shaving cream.
The adverts are always going to be present on the page, it's how websites make their money, in my honest opinion, they might as well be relevant adverts.