The official Google documentation says to:
Paste your snippet (unaltered, in its entirety) into every web page you want to track. Paste it immediately before the closing
</head>
tag.
Surely there is some reason that they suggest this placement; I want to know what those reason(s) are.
My thinking is: Why can't it go in the body tag, if it's non-blocking asynchronous code anyway?
My colleague theorized: This is so that the pageViews still get tracked, even if another element further down the page breaks everything.
But if that were true, then why not suggest adding it right after the opening head tag?