Knowledge Base
MilesWeb / How-Tos

How To Add Google Analytics Code To Your Website?

Approx. read time : 3 min

Google Analytics is a great analytical system that helps you to understand the traffic coming to your website for making better and timely decisions. If you study the Google Analytics data on a regular basis, you will be in a better position to create effective online marketing campaigns. For Google Analytics to work on your website, you will have to add the Google Analytics tracking code to your website.

Before we get started, you will need a Google Analytics account first. If you have one, well and good, if you don’t, you can sign up for Google Analytics here –

Here are the important steps for adding Google Analytics code to your website:

  • Login to your Google Analytics account
  • Click on the ‘Admin’ option
  • Select the account that you would like to track
  • Below the ‘Properties’ option, click on ‘Tracking info’ and then on ‘Tracking code’

Your Google Analytics tracking ID will now be displayed.

How to add Google Analytics tracking ID to your website?

Click on the main menu icon ‘Site’

Go to ‘Site settings’

You will find the option ‘Analytics’, click on that

A page will be displayed where you can add the tracking code, add the Google Analytics code here

Save the changes

Adding The Tracking Script:

You also have the option of adding your own tracking script for incorporating Google Analytics code in your website. This process is quite similar to the process of getting the Google Analytics tracking ID.
Here’s how you can find the Google Analytics Tracking Script:

  • Login to your Google Analytics account
  • Go to the ‘Admin’ option
  • Select the account that you would like to track
  • Below the ‘Properties’ option, click on ‘Tracking info’, and then on ‘Tracking code’
  • You will be able to see the ‘Tracking script’ under the option ‘Website tracking’

You can incorporate this script in your website code.

My aim is to create enriching content on topics related to SEO, web hosting and social media. The idea is to elevate the readers to new levels of usability, accessibility and understanding.