fbpx

How to setup Google Tag Manager on your website

Google Tag Manager is an important tool for businesses of all sizes as it helps to deploy website tags easily, accurately, and quickly. Find out how to set it up correctly.

Why is it important:

Google Tag Manager is an important tool for businesses of all sizes as it helps to deploy website tags easily, accurately, and quickly.

With Google Tag Manager, you can create tags to track website visitors, measure advertising ROI (return on investment), sell products and services, or optimize the customer journey. Other advantages include efficient tag deployment across multiple websites and devices, improved accuracy in tagging activities, integration of third-party products such as analytics tracking codes (like Google Analytics) and remarketing pixels (like Facebook), the ability to control when tags fire, and more. All that ensures you get deeper insights into user behavior and website performance.

Things required before you start:

  • You should have an existing personal Google account with the necessary login information (email address, password).
  • You should have an existing business website.

Steps to set up Google Tag Manager on your website

Step 1: Go to Google Tag Manager.

Click on the “Create Account” button to proceed.

Creating a Google tag manager account

Step 2: On the next screen:

  1. Type in a meaningful name to identify your Google Tag Manager account.
  2. From the dropdown, select the country your business is located in.
  3. Provide a name (preferably the website name) for your container (or GTM for your website)
  4. Click on the necessary option, i.e., in case you are creating a Google Tag Manager account for your website, click on the “Web” option.
  5. Once you have provided all the necessary information, click on the Create button.

Adding a new account on GTM

Step 3 (OPTIONAL, depends on your GTM location): On the next screen, you need to provide your acceptance of the additional Data Processing terms and conditions for the Google tag manager.

Scroll down and at the bottom click on the checkbox next to “I also accept…”

Data processing request acceptance

This might not come up for you if you are setting up the GTM for a different location, i.e., outside the EU.

To accept the terms and conditions, click on the “Yes” button at the top right corner of the screen.

GTM Terms and Service acceptance

Step 4: Now, you will be displayed with the two sets of code that you need to put into your website’s main code to finish the setup and ensure the GTM is active.

GTM install code for website

Keep a copy if the codes on your computer, and you can apply them on your website in different ways:

  1. You can access the website code editor, and under the <HEAD> and <BODY> tags of your website, place in the codes as given, respectively.

Like in WordPress, you can do that through Appearance ->Theme Editor, and under the theme editor access the “header.php” file to insert the code.

  1. If your website is created using SeedProd or on Wix then you will have segments available to you where you can add tags/codes in the Head and Body section. You can use them to insert your codes in respective sections.
  2. Another easy way is to look for necessary plugins that can help you integrate your website with Google Tag Manager without the hassles of inserting code manually. We will look into such a process here using Google’s SiteKit plugin available on WordPress.

Step 5: Let’s start the process of integrating the Google Tag Manager with your WordPress website.

Go to your website’s WordPress admin panel and log in with your credentials.

Your admin panel can be reached at: “your website URL”/wp_admin

, e.g. https://www.abc.com/wp_admin

Once you have reached the admin panel, enter the login details and click on “Login”.

You should have the login details with you since the initial WordPress login on your website.

WordPress login

Step 6: Once you are on the WordPress dashboard, on the left-hand panel, scroll down to the option called “Plugins” and hover over it to open the next menu, and then click on “Add New”.

Adding a new plugin

Step 7: On the next screen, in the search box at the top right corner of the screen, type in “Google Site”, and from the search results, click on the “Install” button next to the plugin named “Site Kit by Google…”

Installing the Site Kit Plugin on WordPress

Once the plugin is installed, the “Activate” button will appear next to the plugin. Use it to activate the plugin and proceed.

Activating the Google Site Kit plugin

Step 8: Once installed, the G Site Kit option will be available on the WordPress portal right under the Dashboard option on the left menu panel.

Click on “Settings”.

Site Kit plugin settings

Step 9: On the next screen, click on the tab “Connect More Service”.

Connect more service - Site Kit

Step 10: Once the tab opens, from the options, click on the “Set up Tag Manager” link under the Tag Manager segment.

Setting up the tag manager

Step 11: You will be asked to sign in to the Site Kit plugin using the Google account with which you have created the Tag Manager account.

Click on the necessary Google Account from the list to proceed.

Google account login

Step 12: You will asked to give the necessary access rights to the Site Kit plugin in order to continue and to integrate your Tag Manager and website.

Click on the “Continue” button at the bottom right corner of the screen to proceed.

Granting access to Google Sit Kit

Step 13: You will be then redirected to the WordPress portal to finish the Site Kit setup.

You will be then asked to select the necessary Tag Manager account and container. If you have multiple accounts, then ensure the correct one is selected and click on the “Confirm & continue” button.

Selecting the right tag manager account

You will now have Google Tag Manager successfully set up on your website.

Step 14: Now, let’s set up the default PageView trigger on the newly formed Google Tag Manager.

To do so, come back to the browser tab that had the Google Tag Manager site opened.

And from the left menu panel, click on “Triggers”.

Setting up triggers

Step 15: Once on the “Triggers” screen, click on the “New” button at the top right corner to proceed.

New trigger

Step 16: Provide a meaningful name to the trigger to easily identify it at a later stage, and then click on the Trigger Configuration area.

All pageview trigger

Step 17: A pop menu on the right side will open up. From the menu, click on the option “Page View”.

Trigger creation - type setup GTM

Step 18: Once it is clicked, the following details will come up under Trigger Configuration ensure that the default is un-altered and you click on the “Save” button at the top right corner of the screen to proceed.

Setting up the all pageview trigger on GTM

Step 19: Your trigger will now have been created, but it is still not implemented on the live website.

To proceed, you need to click on the “Submit” button at the top right corner of the screen to proceed.

Submitting the GTM changes

Step 20: Provide a meaningful version name and description and then click on the “Publish” button.

Giving a version name and details

Your changes will now have been implemented on the live website.

Want to grow your business on autopilot?

View our done-for-your marketing subscription plans or book a consultation with our team to discuss your business needs in more detail.

Marketing Launch Team is an innovative subscription-based digital marketing agency that helps startup founders grow their business on auto-pilot.

Our Location

Kesklinna linnaosa, Ahtri tn 12 Harju maakond,
Tallinn, Estonia 15551

Get Marketing Help