Where Should The Analytics Tracking Code Be Placed In The HTML Of A Webpage For Data Collection?
- Just after the opening <head> tag
- Just before the closing </body> tag
- Just after the opening <body> tag
- Just before the closing </head> tag

Where Should The Analytics Tracking Code Be Placed In The HTML Of A Webpage For Data Collection?
Copy and paste the global site tag to each web page you want to measure. Add the tag right after the opening tag on each page.
https://support.google.com/analytics/answer/1008080