How to Add Google Tag Manager to Your WordPress Website (With Video)

If you want to track your WordPress website’s conversion and traffic efficiently and easily, Google Tag Manager is a great tool to do just that. In this article, you’ll learn about Google Tag Manager and how you can integrate it with your WordPress website in a few simple steps.

What is Google Tag Manager?

Google Tag Manager website
The Google Tag Manager website.

A website’s analytical data like traffic and conversions is essential for tracking its performance. These analytics are tracked using code snippets added by their respective website owners. And often, multiple codes are required to gather the data.

Google Tag Manager is a tool that helps website owners add and manage these scripts from a single dashboard. It offers built-in tag templates for Google’s marketing platform tools like Adwords, Google Analytics, and DoubleClick.

The tool also works with several third-party analytics and tracking platforms. Plus, you can add your own code using customer HTML.

Google Tag Manager incorporates all your tracking scripts into a single script that’s easy to add and manage. And considering the fact that Google has provided an official plugin to make the integration easier, the whole process can be finished in a matter of minutes.

Getting Started with Google Tag Manager

Head over to the Google Tag Manager website to get started. Here, click the “Start for free” button in the top right.

The website will ask you to sign in to your Google Analytics account to get access to Google Tag Manager. If you don’t have a Google Analytics account, you can create one easily.

After signing in to your Google Analytics account, follow these steps:

creating a container in Google Tag Manager
Process to sign up for Google Tag Manager.
  1. Click “Create Account”.
  2. Set a name for the account.
  3. Select a country from the dropdown.
  4. Type a container name.
  5. Choose your targeting platform(s) between web, iOS, Android, AMP, and Server.
  6. Click “Create”.
  7. Accept the terms and conditions.

Setting Up the Site Kit by Google Plugin

Code snippet provided by Google Tag Manager
Google Tag Manager provides a code snippet to be inserted into your website tags.

After completing these steps, you’ll receive a code snippet to be inserted into the head and body tags on your website.

Though you can paste the snippets directly into the code, the easiest way to do it is by using the Site Kit plugin by Google. You can find it in the WordPress repository.

Site kit by Google plugin page
The Site Kit by Google plugin is available on the WordPress repository.

After activating the plugin on your WordPress website, you need to follow these steps to set it up:

Setting Up SIte Kit plugin
Process of setting up the Site Kit by Google plugin.
  1. Click “Start Setup” to configure the plugin.
  2. Sign in to the Google Account that you used for the Google Analytics account. Grant the required permissions after signing in.
  3. Click “Proceed” to verify the ownership of your account.
  4. Then click “Allow” to link your website to the Google account.
  5. Finally, click “Add Site” to set up the search console for the website.

We’ve successfully set up the plugin, so let’s head to the WordPress dashboard.

Integrating Google Tag Manager with WordPress

On your WordPress dashboard, you’ll notice that a new tab called “Site Kit” has been added. Click the “Settings” option under it. Then select the “Connect More Services” tab at the top.

Site Kit in WordPress dashboard
You need to enable Analytics before you can connect the Tag Manager services.

Before we can set up Tag Manager, we need to activate Analytics for our website. So click “Set up Analytics”. You’ll again have to sign in to your Google account with which you’ve signed up for Google Analytics. You also need to grant the required permissions.

With the service connected, select the Account, Property, and View settings. Then click “Configure analytics”.

You need to select the Account, Property, and View settings to enable Analytics.

Now head back to the connect more services option under Settings. And click “Set up Tag Manager”.

We’ll have to sign in to the same Google account and grant permissions a final time. On the next page, select the Account and Container you want to track. Then click “Confirm and continue”.

Google Tag Manager on WordPress analytics settings
Under the Tag Manager settings, choose the Account and Container that you want to track.

With that, our WordPress website has now been successfully integrated with Google Tag Manager.

You can now track your WordPress website’s conversion and traffic efficiently and easily. However, if you want the process to be simplified even more, check out the video below:

If you prefer a video version, please check out this video:

Further reading

LEAVE A REPLY

Please enter your comment!
Please enter your name here