Divi: the easiest WordPress theme to use
Divi: The best WordPress theme of all time!
With over 901.000 downloads, Divi is the most popular WordPress theme in the world. It is complete, easy to use and comes with more than 62 free templates. [Recommended]
Would you like to add and configure the Google Tag Manager on WordPress? Not sure if this is a necessary feature? Don't worry, I'll show you how to install Google's Tag Manager on WordPress and let you know its benefits.
What is the Google Tag Manager?
Usually, website owners add several pieces of code to track their conversions, traffic and retrieve other analytical data.
With Google's tag manager, you can easily manage these different pieces of code from a single dashboard.
There are pre-designed tag templates for Google Analytics, Adwords, DoubleClick, and more. The tag manager also works for third-party analytics and tracking services.
Aside from that, you can also use custom HTML code to add your own tracking system or a code of your choice.
This saves you from wasting time adding and removing tags for a dashboard where everything is administered. It goes without saying that these different portions of code are loaded by a single script.
With all of this in mind, now is the time to install the Tag Manager on your blog. I will also show you how to add Google Analytics to your blog using the Google Tag Manager.
It is important at first to own a self-hosted WordPress blog (Discover the difference between WordPress.org and WordPress.com). If you do not know how to create a WordPress blog, then this Tutorial will certainly help you.
Now, I invite you to create a Google Analytics account and to install it on your WordPress blog. Get the tracking code. Instead of adding it to WordPress, we're going to add it to Google's tag manager.
How to Configure the Tag Manager
Now that we're ready to add Google Analytics, the next step is to set up Google's tag manager.
I invite you to visit the official website “Google Tag Manager“. sign in with your Google account (the one used to create the Google Analytics account).
Easily create your website with Elementor
Elementor allows you to easily create any website design with a professional look. Stop paying expensive for what you can do yourself. [Free]
After logging in, you will be taken to the new account setup page.
Now you need to provide a container for your account. A container can be a website or an iOs or Android application. In this case, we will use a website.
You can use your domain name as a container. You can add multiple containers for each account.
Then click on “create” and your account will be created with the container, and you will access your dashboard (if a conditions window appears, you can accept it). You will most likely receive a Google Tag Manager installation code on your blog. Copy this code and add it to your blog using either your theme or using the plugin Header and Footer.
Your dashboard will look like this:
Now the Tag Manager is ready. The next step is to add a new tag. For that, you have to click on “new Tag".
You will have to choose a product. There are over 20 template integrations available. We will choose Google Analytics for this example, however you can use any tag from a different product. You can even click Custom HTML to add a custom piece of code.
Once you have chosen Google Analytics, you will have to choose between “Universal Analytics"Or"Classic Google Analytics“. Click on "Universal Analytics”And you will be asked to provide your tracking ID. You can retrieve this code by logging into your Google Analytics account and accessing the “Admin” tab.
Select in the “Property”The option“ tracking information ”and then“Tracking code".
Clicking on it will take you to a new tab which will basically display “Tracking ID".
Copy the tracking ID and add it to the Google Tag Manager, in the “Tracking ID".
The tag configuration interface will now ask where to display the tag. You can select “All pages".
you will then be asked to provide a name, once that is done you will be taken to the page which displays all the available tags.
How to publish your content
Tags in the Tag Manager will not be available until the container is published. Go to your Google Tag Manager dashboard (Google Tag Manager) and click on the “Publish” button.
Easily create your Online Store
Download free WooCommerce, the best e-commerce plugins to sell your physical and digital products on WordPress. [Recommended]
You can also preview your website, and the Google Tag Manager will show you the tags triggered on each page.
That's all you need to do to install Google Tag Manager on your WordPress blog. Feel free to share this tutorial with your friends on your favorite social networks.