Are you wondering how you can track the traffic on your website or the analytics?
Worry not, Google Tag Manager will help you out with it.
Google Tag Manager will help you integrate multiple marketing and analytics services on your WordPress website.
Often you will be required to add code snippets that help you in tracking conversions, traffic, etc.
Google Tag Manager allows you to add, update, and manage the codes on your website tirelessly from a single dashboard.
This will save your time of updating the tags in your code, plus these clean codes are loaded beautifully in a solo script.
Sounds hospitable? Looking forward to adding Google Tag Manager to your WordPress website?
This is an easy and step-by-step guide that will take you through each step, and by the end, you will be able to install Tag Manager effortlessly on your website.
Let’s get started!
What is Google Tag Manager?
Giants like Google, Adobe, and Facebook use tracking services to keep a check on their analytics- Google Analytics, Facebook Pixel, LinkedIn Insight, Adobe Analytics; to integrate their websites with the services they provide.
Here is when Google Tag Manager comes to your rescue. With this free management tool created by Google, you will be able to insert and update code snippets called “tags” on your website from a single interface.
You can add customized tags or use the built-in template tags for the most sought-after services like DoubleClick.
The Tag Manager is beginner-friendly. Anyone can learn and implement tracking scripts on their websites quickly.
ADDING GOOGLE TAG MANAGER TO YOUR WORDPRESS WEBSITE:
1. Set up a Google Tag Manager Account:
First things first, you need to visit the Google Tag Manager website and create your free account by clicking on ‘Start for free.’
You have to sign-in using your Google account(you can create one for free if you don’t have one). After filling out the credentials, you will be able to view the website’s option “Create Account”.
Further, you can add a new account, enter your account’s name (which can be your company’s name), and in the account setup box, choose your country.
Next, you have to set up your container.
A Container is a stack/ bundle of all the configurations, tags, and triggers installed on a specific website.
You will be asked to fill out the container name and where to use it.
You can use your website name as the container name and choose the web for the last blank.
Now, you will be able to view your account and the container plus the freshly created ‘container dashboard.’
Your Tag Manager account is ready; the next big step is to add tags from the 2o templates available. You can also add a custom HTML code.
The option to do so is available in the bottom left corner of all the templates.
Next, after adding the tags, you will be asked to agree to the Terms and conditions of Google Tag Manager and click on the ‘yes’ button on the top right corner.
After you have agreed to the terms, a pop-up window will be displayed on your screen, containing the code snippets that will install Google Tag Manager on your website. You need to copy and save this code.
2. Adding the Tag Manager code to your WordPress website:
First thing after basic set-up, you have to activate insert headers and footers. Here’s a plugin that can help you with that.
To complete this, paste your tag manager code (the one you saved in the previous step) in the top header section and click on the save button to store your settings.
3. Publish your Container:
It does not stop at adding and customizing tags, you need to publish your container for the tags to work i.e., go live on your website and collect information.
Finally, visit the Tag Manager dashboard and look for the Publish button on the top right corner.
Google Tag Manager supports multiple tag types like third party services and Google Marketing products. Further, you can also add custom java or HTML tags.
You can preview your website and the tags fired on each page too.
And voila, you are done!
INSTALLING GOOGLE TAG MANAGER USING A PLUGIN ON YOUR WEBSITE:
If you want to use a plugin for installing tags, there is a universe of plugins available on the WordPress website.
In the WordPress admin panel, search for “Plugins,” you will be able to locate all of them.
Using the plugin will provide you additional functionality, and hence this method will only add value if you can take advantage of these different functionalities.
You will be able to push a lot of data/information related to your website’s traffic, browsers, blog posts, etc. into the data layer, which will help you send all this data/information into Google Analytics.
Another advantage of installing GTM using a plugin is adding video and scroll tracking, plus you can blacklist various variables and tags.
If you are using Woocommerce as your sole/primary eCommerce platform, you can enable track here too.
On the contrary, there are multiple disadvantages of using a plugin.
The topmost is the negative impact of the plugin on the speed of your WordPress website speed.
Another disadvantage is the lack of control over the code that has been placed by the plugin on your website.
If you found this article helpful, let us know in the comments section below. And make sure you follow WP Uber for the latest updates on themes and plugins.
WP Uber is a WordPress management agency that provides detailed site health reports and customized security solutions for WordPress sites.