When you visit a website, it can accurately guess your location. A convenient magic trick, isn't it? If you want to learn more about this "miracle", continue reading the following article. We will talk in detail, explain what Google Tag Manager is and guide how to install Google Tag Manager into WordPress website.
What is Google Tag Manager?
Before answering this question, let's take a few steps back and explore tag technology.
Tag stands for pixel tag or tracking pixel. It is the HTML code used to track user behavior and conversions.
Although it has always been present on websites and email marketing campaigns, it is difficult for you to detect these tags because it is only 1 × 1 pixel in size.
That's because tag visibility has never been the point
Each tag is embedded with an external link. When you visit a website or open an email containing a pixel tag, the browser silently checks the external link and transmits certain data to the server.
Here is an example of the pixel tag in the source code:
<img style="“position: absolute;" src="https://www.hostinger.vn/huong-dan/“Tracking">
It can be seen that tag technology is becoming more and more popular in digital marketing because it can get confidential data. There are many third-party companies that provide such tag management services.
Tag Manager is a product of Google, the provider of this service. It is commonly known as Google Tag Manager
Thanks to the same company, Google Tag Manager is linked with Google Analytics because Google Analytics also supports tag marketing or GA Tracking Code to track user interactions.
Although it is easy to add a Google Analytics tag to a website to track overview information like page views and referrals. Google Tag Manager further strengthens the Google Analytics tag, as it helps to provide user behavior data, thanks to the application of its own pixel tag.
In addition, Google Tag Manager is also compatible with other types of tag platforms such as Adobe Analytics, Google Ads, Facebook and Twitter.
In short, Google Tag Manager is a service for managing tags, or pixel tags, technology used to track user behavior. These valuable data are then used to improve marketing campaigns. It is also often integrated into analytical tools, such as Google Analytics, for managers to understand the complete and quality information of their website or digital marketing campaign.
What can you do with Google Tag Manager?
Although linked to Google Analytics at all times, Google Tag Manager can still process multiple pixel tags at the same time.
In terms of features, GTM (Google Tag Manager) takes on the role of tag manager. It handles the process of adding tags, sets rules for implementing pixel tags, and performs centralized and overall adjustments as the code changes.
GTM can help with management, but you'll still need to understand each pixel tag feature – like the one on Facebook to make effective use of Facebook tags – as you'll be using it to determine the type of behavioral data which user you want to extract.
Technologically, since tags are used to get behavioral data, the types of data a pixel tag can collect include:
- OS Type
- Type of website or email used (mobile or desktop)
- IP Address (Internet Service Provider and Location)
- Screen resolution
Given the nature of data, it's not surprising that Tag Manager is widely used in digital marketing.
As you know, user behavior data is highly valued in marketing. It allows you to capture valuable “insights”. From there determine which marketing campaign is best for the brand.
With the help of tag techniques, you can not only aim to book long-term revenue, but also find the things that are hindering the business process. Analytics allow you to perform growth hacking more effectively.
From a technical perspective, pixel tags allow you to track heat graphs, providing an accurate view of your site's performance on traffic.
This data plays an input role, deciding what the website should improve, making the website actually sell goods instead of just showing up.
Things that make it possible to get user interaction data in such a short time are certainly valuable for businesses struggling to achieve success. Because of that, you have complete control over the analysis process.
These are just a few examples of what you can do with GTM. In short, nothing can stop you!
How to Install Google Tag Manager in WordPress
Google Tag Manager is very popular with digital marketers, so you won't be the first to use these features.
With that said, Google Tag Manager will collect data according to the configuration of the setter. So as long as you have a website and a clear plan to do with that data, you should use Tag Manager.
You already know what Google Tag Manager is, its benefits. We will guide you on how to install Google Tag Manager shortly.
Note that this guide is only correct if you are using the WordPress platform on your self-publishing site and not on WordPress.com. WordPress.org is different from WordPress.com. WordPress.org allows you to host your website and manage the source code yourself, so you are given full access to the WordPress files and code to set up tags. Read this article if you want to learn more differences between WordPress.com and WordPress.org
If you have not signed up for a web hosting provider, please see the Hostinger's hosting package. We provide powerful web hosting with many perks at the lowest price only $0.8 /month.
How to install Google Tag Manager as follows:
1. Sign up for a Google Tag Manager account
To create a new account, go to Google Tag Manager here and click Start for free in the top right corner of the page.
The system will ask you to log in to your Gmail account. If this account is your company's tag management account, we recommend using your corporate email instead of your personal email.
On page Add a New Account, please fill in the fields correctly. Choose Container according to the type of device your website is running on. Since using WordPress, we will choose the option Web.
When done, click Create. The web page will then display the Google Tag Manager terms of service. If you accept, check the box to agree then click Yes.
2. Get Code
You should now be able to see the Tag Manager Dashboard. A pop-up window will appear on the screen, containing two different sets of HTML code as shown below.
It's the tracking code that needs to be added to the website. Basically you just need to paste the first code in the and the second code put after the tag .
Just leave the popup open as we will need in the following steps.
3. Login to WordPress Dashboard
Switching to the WordPress Dashboard, we will add the tracking code to the website.
To make any changes to your website's Code, you need administrative access (admin WordPress).
4. Add tracking code to Appearance -> Editor
Go to section Editor in the area Appearance. If you can't see the option Editor That means you don't have admin access to be allowed to edit the code.
In the page Editor, you will see a list of sample files on the right side of the page. Click on the file with header.php to add tracking code.
Usually you can add both the tracking code to the header and body of the file header.php. However, there are certain themes that do not allow or have to use a different file name.
Therefore, you need to familiarize yourself with the theme of the template file to create headers and redirects in the website.
When opening the file header.php, add the first tracking code to the header, specifically right at the top of the .
<head>
<!-- Google Tag Manager --><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});
var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l="+l:"';j.async=true;j.src="https://www.googletagmanager.com/gtm.js?id="+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-WHWQMKM');</script><!-- End Google Tag Manager →
<!-- Other code follows after the tracking code -->
</head>
Similarly, add a second tracking code to the header section, specifically at the top of the .
<body>
<!-- Google Tag Manager (noscript) →<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WHWQMKM"height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><!-- End Google Tag Manager (noscript) →
<!-- Other code follows after the tracking code -->
</body>
Save changes when done.
Due to the nature of the theme, be very careful when making any changes to the file header.php.
Incorrect operation can easily damage the template and invalidate the tracking code function.
It is therefore best to make a copy of the file code before making any changes. That way, if something goes wrong, you can still restore the original code.
5. Add tracking tags to Google Tag Manager
After adding the tracking code to the website, we continue to learn how to add the tracking tag to the Google Tag Manager account.
- Return to the Google Tag Manager Dashboard, click Add a new tag in section New day.
- Click on the Tag Configuration section to select the tag you want to add.
Pro tip: Depending on the tag type, you may have to provide certain data regarding your Partner ID. So to do this step, you need to know what the specific requirements of the product are.
- Don't forget to set the trigger via Triggering. This step lets you redefine the tracking tag activation before loading.
- Once done, click the Save button in the top right corner of the page.
- Rename the tag accordingly, then click Publish.
And congratulations, now you have installed Google Tag Manager successfully!
Summary
Google Tag Manager is a free tag management system that allows you to manage multiple tracking tags at once. Not only that, the system is capable of tracking user behavior and conversions, creating analytics in digital marketing.
To implement WordPress Google Tag Manager, you need to perform the following steps:
- Sign up for Google Tag Manager
- Nhận GTM code snipped
- Add tracking code to WordPress header and body
- Configure and publish Google Tag Manager tags
An easy to use, free and highly beneficial system, why can't you trust it?
If you know any tips about Google Tag Manager or have more questions and concerns about tag managers, please leave us a comment below!
إرسال تعليق
إرسال تعليق