Google Tag Manager is a free and powerful tool to install and manage tags in a codeless way. By integrating GTM to your Ubidots apps, you can easily track user activity and introduce useful tools to your operation such as cookie compliance integrations, and customer support chats through platforms like HubSpot or Intercom.
Requirements
An active Ubidots account (Enterprise license or higher).
1. Create a Google Tag Manager Account and Container
Log in to your Google account. If you already have a Google account used to access other Google products relevant to your Ubidots app and/or business, use that one for this process.
You should have an account for each individual business/organization you want to track and one or more containers in each account depending on the sources (for example the web and an app) of that organization. So if you already have an account dedicated to tracking another source of your Ubidots-related organization, it could make sense for you to create a different container on that account for this process.
Create a new account by clicking on the “create account” button.
Name the account. This is usually the name of your company.
Select your country.
Choose if you want to share data with Google.
Name the container. It’s recommended to name it after the website where you’re going to install Google Tag Manager.
Select the type of platform you want to target (web, iOS, Android, AMP, server). Since we’re tracking our Ubidots app, it makes sense to choose “web” here.
Click on “create” and then agree to GTM’s terms of service by clicking on “yes”.
Copy the container ID and save it for later use.
2. Ubidots App Configuration
Log in to your Ubidots account and go to the “apps” section to choose the application you want to integrate GTM with.
Click on the pencil button of the app.
Under the “app info” section, locate the “Google Tag Manager ID” field and paste GTM’s container ID (the one you copied in the previous section of this guide) there.
That’s it, you can now use this integration to track user actions in your app or introduce cookie compliance integrations, and support chats with HubSpot or Intercom.