Skip to main content
All CollectionsUser Guides
Apps: Add Google Tag Manager (GTM) to your end user App
Apps: Add Google Tag Manager (GTM) to your end user App

Learn how to easily integrate your Ubidots end user app with Google Tag Manager to track user activity and introduce third party tools.

Sergio M avatar
Written by Sergio M
Updated over a week ago

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.


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.

  1. Create a new account by clicking on the “create account” button.

  2. Name the account. This is usually the name of your company.

  3. Select your country.

  4. Choose if you want to share data with Google.

  5. Name the container. It’s recommended to name it after the website where you’re going to install Google Tag Manager.

  6. 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.

  7. Click on “create” and then agree to GTM’s terms of service by clicking on “yes”.

  8. 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.

  1. Click on the pencil button of the app.

  2. 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.

Did this answer your question?