title: Where to put your Google Analytics code
body: <p>I know this question is asked before but because Google is conflicting itself in their support I was confused.</p>
  
  <p>When generating a Google analytics code, Google Analytics tells me to put my tracking code immediately after the opening body tag:
  <img src="https://i.stack.imgur.com/ha4Yf.png" alt="print screen google analytics"></p>
  
  <p>However, I read on the Google support forum that it should be inside my <code>&lt;head&gt;</code> tag.</p>
  
  <p><a href="https://support.google.com/analytics/answer/1008080?hl=en-GB" rel="noreferrer">https://support.google.com/analytics/answer/1008080?hl=en-GB</a></p>
  
  <blockquote>
    <p>Paste your snippet (unaltered, in it’s entirety) into every web page that you want to track. Paste it immediately before the closing <code>&lt;/head&gt;</code> tag.</p>
  </blockquote>
  
  <p>Anyone knows which one is best?</p>