Answer:
Just before the closing </head> tag
Explanation:
The Analytics tracking code is usually a small pieces of JavaScript snippet install on a page of a website (just before the closing </head>tag) but runs in the viewer's browser. it is responsible for tracking and collection of all of the users data when they visit the pages.