How To Add Google Analytics To Your New Website

Brandon LazovicJanuary 4, 2021

Google Analytics is a powerful and free tracking tool for webmasters, with more than 56% of websites using Google Analytics. It can measure many data points, including: 

  • Your overall website traffic
  • Traffic visiting individual web pages
  • How your site is generating web leads
  • The type of device your traffic comes from, whether it’s desktop, mobile, or tablet
  • Where your users live
  • Engagement, such as average time spent on your website, and what users are doing on your site like watching videos or clicking specific links. 

Read our latest guide that will walk you through how to add Google Analytics to your new website in as little as 10 minutes. 

Sign Up For Google Analytics

If you haven’t done so already, you’ll need to sign up for Google Analytics. 

First, click on the “Sign Up” button via the Google Analytics homepage.

You’ll then select “Website”, name your account, and fill out other information such as your website URL and industry category. 

After that, you’ll then review Google’s data sharing options and click on the “Get Tracking ID” in the lower left corner of the screen. GA will then provide you with your tracking ID. 

If you’ve already set up your Google Analytics account, but don’t know what your tracking ID is, then we’ll walk through how to find your tracking ID below.  

Finding Your Google Analytics Tracking Code

Step 1: Log into your Google Analytics account 

Step 2: click Admin on the lower left side of the screen

Step 3: Under “Account”, select your account from the drop-down menu. 

Step 4: Pick your desired property. 

Step 5: Select Tracking Info > Tracking Code in the property column

Step 6: Your special tracking ID starts with UA

Step 7: After you have identified your tracking ID, you’ll need to get your tracking code fragment, which is the Global Site Tag (gtag.js). The gtag.js is the monitoring code for this particular property and you will need to copy and paste this code on any web page you wish to track on your website.

Implementing The Google Analytics Tracking Code

There are two main ways that you can implement your Google Analytics tracking code - either through Google Tag Manager, or as a Gtag.js HTML code that’s placed on the header of your website. 

Google Tag Manager

Follow these steps if  you want to add your GA tag using Google Tag Manager: 

Step 1: Select “Build Tags” and choose Google Analytics

Step 2: Next, you’ll choose “Universal Analytics” 

Step 3: Name your tag and add your Google Analytics property ID.

Step 4: Select the tracking method, such as PageView, for the event to trigger and record in GA

Step 5: Select your firing triggers - selecting one such as All Pages will ensure that your tag will fire on each page of the site. 

HTML Code Using Gtag.js

If you would rather insert your Google Analytics tracking ID on your site directly, you can add it as HTML code into the <head> of your website pages. 

You can work with your website developer to do this, but if you’re working on a WordPress website, you can use the “Insert Headers and Footers” plugin to manually add the GA code to your desired pages. 

Making Sure Your Google Analytics Tag Fires Properly

After you’ve set up your Google Analytics tracking, you’ll want to make sure that it’s tracking properly in the GA dashboard. 

The first way to do this is to view the “Real Time” report in Google Analytics. Browse your website in incognito mode - as you enter multiple pages, Google Analytics should reflect the pages that you’re entering. Note: it can take a few hours for your website to reflect the insertion of your tracking code. 

You can also use Google’s Tag Assistant extension for Google Chrome to ensure that your tracking code has been implemented and is firing correctly. 

The extension will show you any events/triggers that are being fired and what errors are occurring for tags that you’ve inserted for your website. 

Setting Up Tracking Goals

Now that you’ve set up Google Analytics, you’ll want to do a couple of other things. The first is setting up tracking goals. 

You're going to have to pick the kind of target you want. They include: 

  • Destination - if you’re looking to get your user to a particular web page. 
  • Duration - if you’re looking to track which users spend a certain period of time on your platform. 
  • Pages/Screens for each session. For example, if your goal was to allow users access to a certain number of web pages. 
  • Event - if you want to track users that play a video or click on specific site links.

Link To Google Search Console

Google Search Console is a powerful platform to help advertisers and webmasters obtain useful search analytics and results. 

You may do things like: 

  • Test the search rate for your content 
  • See whether the website is being crawled by Google 
  • View internal pages and external websites that link to your site pages 
  • View which keywords you rank for on Google

To set it up, press the gear icon in the lower left corner of your Google Analytics dashboard.

  • Then you’ll select “Property Settings” 
  • Next, you’ll click on “Adjust Search Console” 
  • Click the “Add Button”, which will trigger a new page to open.
  • On the new page, select “Add a site to Search Console”
  • Lastly, you’ll add your website to Search Console. You may need to add more HTML code to your website. Note: your data may take some time to populate in Google Analytics, so don’t be alarmed if it doesn’t appear right away. 

Other Steps To Take After Setting Up Google Analytics

Outside of linking your Search Console and setting up tracking goals, there are a few other things that you may want to do in Google Analytics, which we’ll cover below. 

Granting User Access

I cover this in my latest article on granting user permissions in Google Analytics, but here’s a quick rundown: 

  • Tap on the gear icon in the lower left corner to go to the Admin dashboard. 
  • Click the User Control button in the first column. 
  • Click the Add New Users tab 
  • Enter the email address for the user you want to add
  • Choose the permissions level that you want to give them 
  • Click Add

Setting Up Views In Google Analytics

Google Analytics helps you to set up your files so that you can only see the statistics and measurements that matter to you by "views."

You should set it up, though, only to get the details you want to see. You might have a view that lets you see just organic search traffic. Or maybe you just want to see the traffic in social media. Or you want to see the conversions from your target market.

Much of this can be achieved by views.

To install a new view, simply follow the following steps:

  • Tap on the gear icon to go to the Admin dashboard.
  • Select Build a new view in the "View" column
  • Choose "Web Site" or "App"
  • Enter a name for a view that defines what it filters for.
  • Choose the "Time Zone Reporting"
  • Click the Build Display button
  • If you've built your view, you'll be able to edit the view settings to select exactly what you want to see.

Linking Google Ads With Google Analytics

You can also link your Google Ads account with Google Analytics. 

  • Tap on the gear icon to go to the Admin dashboard. 
  • In the "Property" column, click the Google Advertising link 
  • Tap on the latest community connection 
  • Click on Google Advertising accounts that you want to connect to Google Analytics 
  • Click the Proceed button 
  • Make sure that the link is on with whatever property you want to see in Google Ads. 
  • Click Accounts Link

Now that you’ve set up Google Analytics, be sure to check out some of our other resources to level up your Google Analytics knowledge: 

Categories:
Digital Marketing
Social Media
Digital PR
Photography
SEO
Analytics
Tool Reviews
Local SEO                                                          
Contact: 
brandon.lazovic@gmail.com                           

Sitemap           Privacy            Editorial Guidelines
Copyright © 2021 Brandon Lazovic LLC. All rights reserved.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram