Google Tag Manager (GTM) is a Google tool that allows you to manage scripts used to track visits, events, and interactions on web pages. In Hotmart Pages, it can be used to centralize the management of these codes without needing to insert each script individually on the page.
In this article, you’ll understand what Google Tag Manager is, what it’s used for, when it makes sense to use it in Hotmart Pages, and how to properly install the container step by step.
What is Google Tag Manager?
Google Tag Manager (GTM) is a tag management system, meaning a tool that allows you to organize and manage scripts in one place.
Tags are small pieces of code—also called scripts—used to track visits, interactions, or events on a page. After installing GTM, these scripts are configured and published directly within Google’s tool, without needing to edit the page’s code for each new integration.
In Hotmart Pages, using Google Tag Manager helps organize scripts and reduces the need for direct changes to the page, especially when you use multiple tracking tools.
When should I use Google Tag Manager in Hotmart Pages?
Using Google Tag Manager is optional and is mainly recommended when you want to:
- Centralize the management of different scripts in one place.
- Avoid inserting multiple codes directly into the page.
- Make future adjustments to analytics or tracking tools easier.
GTM does not replace analytics tools like Google Analytics. It works as an intermediary layer to manage the installation of these codes. To track visits, metrics, and user behavior, refer to the Google Analytics article.
What do I need before installing Google Tag Manager?
Before starting the installation in Hotmart Pages, you need to create a container in Google Tag Manager. The container is where tags are organized and managed.
To create a container, follow these steps:
- Go to Google Tag Manager at tagmanager.google.com.
- Log in with a Google account.
- On the home screen, select Create account.
- Enter the account name and select the country.
- In Container setup, enter a name to identify it and select the Web option.
- Click Create and complete the process.
After this, Google will display two Google Tag Manager codes: one for the page Head and another for the Body. Both are required for GTM to work properly.
How to install Google Tag Manager on Hotmart Pages?
After creating the container, you need to insert the codes into Hotmart Pages. Follow these steps:
- Access your Hotmart account at https://app.hotmart.com/
- In the side menu, click Marketing and then Page creator
- Inside Hotmart Pages, select My pages.
- Choose the desired page and click Edit, or select Create page to start from scratch.
- In the editor, click the gear icon to access page settings.
- Select the Scripts option.
- Use the Add script button to insert the GTM code into the Head field.
- Repeat the process and insert the second code into the Body field.
- Save the changes and publish the page.
- After publishing, the Google Tag Manager container will be active on the page.
Attention: Before saving, make sure there are no extra spaces at the beginning or end of the codes, as this may prevent the script from working correctly.
How to check if Google Tag Manager was installed correctly?
After installation, you can confirm that GTM is working properly using a Google tool:
- Install the Google Tag Assistant extension in Google Chrome.
- Access the published page.
- Activate the extension and reload the page.
If the code is installed correctly, the extension will display the Google Tag Manager container ID.
Important: Google Tag Manager is an external tool to Hotmart. Therefore, screen names, options, and flows may change at any time. For specific questions about its internal configuration or functionality, we recommend checking the official documentation or contacting Google support.
Frequently Asked Questions