Where should the Google Analytics Tracking Code be placed?

When integrating your website with Google Analytics, add the Tracking Code in your code. This will allow Google Analytics to track the page views and provide other analytics.

Copy the code and place it just before closing <head> tag i.e. </head> in your website code. When you will integrate, the following steps and the tracking code will be visible. This shows how and where to add the tracking code −