How to Setup Google Analytics Tracking Code in HTML Website
Add Analytics to Your Site
Next, you need to go to your website files. Find the <head> tag on each of your web pages and add the code you copied in the previous section. The code will look like this, but with your own tracking ID substituted.