Where should the Analytics tracking code be placed in the HTML of a webpage to collect data?

✅  The correct answer is:

Immediately after the opening <head> tag of your website

Question:

Where should the Analytics tracking code be placed in the HTML of a webpage to collect data?

Solution:

  • Immediately after the opening <head> tag of your website
  • Immediately before the closing </head> tag of your website
  • Immediately after the opening <body> tag of your website
  • Immediately before the closing </body> tag of your website