where should the analytics tracking code be placed in the html of a webpage for data collection?
Answer:
- Just before the closing </body> tag of your website
- Just after the opening <body> tag of your website
- Just before the closing </head> tag of your website
- Just after the opening <head> tag of your website
The correct answer is: Just before the closing </head> tag of your website
The Analytics tracking code should be placed just before the closing </head> tag of your website in the HTML of a webpage for data collection. Explanation: You just need to paste the entire snippet into the HTML on your web pages, just before the closing </head>tag.
This is a confusing question. Please note that the correct answer is “Just before the closing </head> tag” at the current version of the Google Analytics Individual Qualification Exam in English. We will update this file if/when it changes. Note that in Google Analytics Academy assessments a correct answer is different from the same question -Just after the opening <head> tag. Moreover, if you take the GAIQ exam in French the correct answer is also “Just after the opening <head> tag”.