THE PROBLEM:
In my case I did exactly this and it worked fine (on my page of course).
Put these four lines in the head:
aanalytics
BUT, pay attention that if you have more than one head in your page, these lines need to be inserted in the first head otherwise it will not work.
I also had prefix="og: http://ogp.me/ns#” in the html