In this tutorial, I will demonstrate how you can add website to Google Analytics. Before adding a website to Google Analytics, it would be great if you know what Google Analytics is?

What is Google Analytics?

Google Analytics is a free analytics tool through which you can measure your website traffic. It gives you complete insights of user activity on your website with real-time and tangible data. This tool was launched on 14th November 2005 by Google. Now, it is top one analytics tool for online businesses.

Setup Google Analytics account

Firstly, open Google Analytics website to add your website in Google Analytics, and follow the steps:

  1. If you already have an account on Gmail, then enter you credentials to login into it, OR create an account by pressing Create account.
    sign in to Google Analytics
  2. Once you sign in, press Start Measuring.
    How to add website to Google Analytics 1
  3. On the next page, enter Account Details, and press Next.
    How to add website to Google Analytics - account detail
  4. Select Web to measure your website and press Next.
    select web to your website
  5. Enter Property Details, and press Create.
    How to add website to Google Analytics - property details
  6. In pop window, accept Google Analytics Terms.
    accept google analytics terms
  7. In new window, unchecked all and save. ALL DONE!
    How to add website to Google Analytics 2

Add Google Analytics code to your website

Once you setup the account for Google Analytics, you need to add tracking code in your website to verify ownership. Copy and paste Global Site Tag (gtag.js) tracking code as the first item into the <HEAD> of every webpage you want to track.
google site tag (gtag.js)

Techniques to add Google Analytics tracking code

Technique 1: Using WordPress Plugin

Step 1: If you have WordPress website, then it will be easy for you to add the tracking code in your website. Install GA Google Analytics plugin to your WordPress dashboard. If you don’t know how to install a plugin in WordPress dashboard then check out our tutorial about How to install a plugin in WordPress.
GA Google Analytics wordpress plugin

Once you install plugin, you need to authorize plugin from setting:

  1. Go to your Installed Plugin, scroll to GA Google Analytics plugin, and click Settings.
    GA Google Analytics wp plugin setting
  2. Press Plugin Settings tab to let it fade down:
    click plugin settingsi) Enter your GA Tracking ID.
    ii) After Tracking Method, select “Global Site Tag / gtag.js”
    iii) After Tracking Code Location, select “Include tracking code in page head (via wp head)” option.
    iv) Copy paste your Global Site Tag (gtag.js) code in Custom Tracker Objects area.
    v) Press Save Changes button.
    enter GA id and code

Technique 2: Add Google Analytics code manually to website

The 2nd way is to add GA tracking code in the header section of the website/theme. You can do it by adding this code in your website header file. If you have website on WordPress CMS, login into it, copy Global Site Tag (gtag.js) code from your Google Analytics account, and then follow the steps:

  1. Mouse hover to Appearance in your left sidebar menu and select Theme Editor from the list.
  2. On the next page, click Theme Header (header.php) from the right sidebar menu.
  3. paste your Google Analytics Global Site tag before </head> tag and press Update File.Add Google Analytics code manually to website

That’s it! You can visit the Google Analytics website to view reports.

If your website is developed by custom coding, you can add the tracking code through your cPanel OR you can ask to your hosting technical support to do it for you.

Suggested Articles:
How to add Website in Google Search Console.
Let me know in comment section that what kind of website are you going to add in Google Analytics?

Comments to: How to Add Website to Google Analytics

    Your email address will not be published. Required fields are marked *

    Attach images - JPG, JPEG, PNG and GIF.


    inforary bg 3
    Welcome to InfoRary

    Please follow the steps to register with us.
    inforary bg 1
    Join InfoRary
    Registration is closed.