Why would we use Google Tag Manager?SOLVE
Jul 22, 2020 12:39 AM
At the end of the Knowledge base article on installing the HubSpot tracking code, there is a section titled "Install the tracking code using Google Tag Manager".
Is this in lieu of installing the HubSpot tracking code by copying/pasting the code on each page of the website as suggestd initially? I'm struggling to see why we would use Google Tag Manager to do this.
Solved! Go to Solution.
Jul 23, 2020 5:38 AM
Hi, @gblundell If your website is hosted in HubSpot, you don't need to install the tracking code at all.
If your website is outside of HubSpot, you've to install the HubSpot tracking code in order to use HubSpot analytics.
You can directly copy the HubSpot tracking code and paste it on your website or you can paste it on your website using the Google Tag Manager. They are the same thing. You don't have to use Google Tag Manager to install the HubSpot tracking code.
However, I suggest using the Google Tag Manager to manage all of your tags including HubSpot tracking code, so that you don't have to copy/paste the tag each time on the website when you use a new tracking tool. It's easier to manage the tag using GTM. You can also see the tracking preview in GTM.
"Google Tag Manager is a tag management system that allows you to create and monitor tags on a user interface, without writing new code each time you want to construct a tag. You simply embed the Google Tag Manager code into each page of your website. This eliminates the manual process of creating tags, making your marketing process more efficient and precise," according to HubSpot blog.
For example: you want to put Facebook pixel, Google Analytics, HubSpot Analytics, Twitter Pixel, LinkedIn Pixel, Quora Pixel, Mixpanel, or any other analytics tool to track your website traffic or to run your paid campaigns. For that, each platform will tell you to paste their tracking code on each website page. And if you follow this route, every time when you've to use a new tool, you've to manually update all website pages and it could create complications and could break the page. But if you are using Google Tag Manager, you don't have to update your website at all. Once you install the GTM on your website, all new tags can be added directly to GTM and not on your website. GTM will handle all those tags for you.
It might sound complex if you have never used GTM. Once you use it, you'll love it.
Here's a helpful HubSpot guide about Google Tag Manager.