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

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

Options:

  • 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

Correct Answer: Immediately after the opening <head> tag of your website

Explanation:

To add the analytics tracking code to your webpages:

  1. Copy the entire contents of the text box.
  2. Paste it immediately after the <head> the tag on each page of your site.

Read more here: https://support.google.com/analytics/answer/1008080

Other Google Analytics for Beginners Course Assessment 1 Questions & Answers:

Ravi Prakash

Back to top