How to Setup Google Analytics using Google Tag Manager?

0
4781

How-to-setup-google-analytics-using-google-tag-manager

Do you want to set up Google Tag Manager? If you already have a Google account, Google Tag Manager (GTM) is very easy to create and install. Here, in this post, you will learn how to manage Google Tags with each option highlighted.

But before we go further, let’s find out some basics about GTM:

What is Google Tag Manager?

Google Tag Manager is a free tool that allows you to manage and deploy marketing tags (tracking pixels) on your website and mobile app without modifying the code. In other words, it is a way you can easily update measurement codes and related code fragments collectively on your website or mobile applications.

Google-Tag-Manager-install-in-Google-Analytics-flowHow to install GTM (Google Tag Manager)?

Step #1 Go To The GTM Account Page

To get started, first create a GTM account. Go to the official website of Google Tag Manager. Click on the main call-to-action to create a new Google Tag Manager account. If you already have it on Gmail (Google Ads, Google Analytics, etc.), you will automatically log in to Google Tag Manager. Otherwise, you have to create a new account first.

Step #2 Create a GTM Account

Upon login, you will be asked to create a new Google Tag Manager account. For this, follow the process below:

  • First, in tag manager, click on accounts and then create an account.

 

  • Enter an account name and fill the other optionally indicating if you won’t share data with Google.

  • After this, click on CONTINUE.

Step 3: Setup Your GTM Container

A container is where you will easily manage all your tags.

  • After clicking on ‘CONTINUE’ and ‘Create’, the container page will appear.

Google-Analytics-Container-Setup

  • Enter a descriptive container name using the name of your site (But make sure don’t use HTTPS:// or HTTPS://)
  • Select the type of content where the container will use: Web, AMP, Android, or iOS.
  • Then click on “CREATE”.

Step 4: Accept the Data Processing Terms Required by GTM

Here you have to read all the terms and conditions of the services agreement. Click “yes” after scrolling down to the very bottom of the page and then click on the checkbox.

“I accept the Data Processing Terms As Required By GDPR, Learn More.”

Step 5: Open GTM Container

In this step, click on your container’s name, which you created, and click on your GTM tracking code ID. Once you click, you will see the code for installing a tag manager.

Step 6: Install GTM

Important consideration:

“Before moving further to the next steps, make sure that you audit the current tags installed in the code of your website, app, or AMP pages. Plus, create an analytics migration plan”.

To install the GTM, you have to copy the code highlighted below and paste it within the <head> section of every page of your site. Next, click on the “ok” button. Here, you will see the GTM user interface. However, not all vendor tags are currently supported by GTM, and for those that are, you might want to check with the vendor’s technical support to make sure their tracking code works with GTM.

steps-install-google-tag-manager-in-google-analytics

Step 6: Analyse the Coverage of GTM Container Tracking Code

Once you install the code, it’s time to test and ensure the code is running on every page. There are several tools that you can use for this process with Google Tag Assistant Legacy being one of them. Google Tag Assistant Legacy is a free tool commonly used by several professionals to analyze small sites!

Congratulations! You have successfully installed your GTM Google Tag Manager!!

Google-Tag-Assistant-Legancy

How to Setup Google Analytics with Google Tag Manager?

Once you have successfully entered the code snippet on your website, you will need to set a tag.

Start by clicking on the new tag

By clicking on the untitled field, you can rename the tag. Then click on the big icon where it says choose a tag type to start setup.

adding-new-tag-in-google-tag-manager

Once you click, there are different types of tags that will appear on-page. You have to select “Google Analytics: Universal Analytics.”

Now, under Google Analytics settings, click on the dropdown menu and select a “NEW VARIABLE“.

Here, give a name to your variable and enter your Google Analytics “TRACKING ID“. Next, click “SAVE” when you are done.

In the next step, you will have to set up a trigger. For this, click on the big icon where it says “choose a trigger to make this tag fire”.

Here select All Pages for basic Google analytic implementation and click on the Save button at the top.

Now, you are ready to publish your Google Analytics tag.

Next, you will need to submit a Newly Created Tag. For this, select tag from the options appearing on the left. Then select Google Analytics Tag and click on the submit button.

That’s all! You have successfully implemented Google Analytics with Google Tag Manager and it will execute on every page. Now all you have to do is wait for a few hours for Google Analytics to collect your website data. Then you can log in to your Google Analytics account and analyze or view your website reports.