---
title: "Google Tag Manager Integration Guide"
description: "Connect GTM to Loyally.ai for seamless event and pixel tracking"
url: https://help.loyally.ai/en/articles/162-google-tag-manager-integration-guide
collection: "White Label"
updated: 2026-05-16
language: en
---

# Google Tag Manager Integration Guide

Connect GTM to Loyally.ai for seamless event and pixel tracking

## Connecting Google Tag Manager to Loyally.ai

Integrating **Google Tag Manager (GTM)** with your [Loyally.ai](https://Loyally.ai) account is the most efficient way to track customer interactions and manage marketing pixels without touching a single line of code.

Once connected, you can trigger loyalty events and sync data across your entire marketing stack seamlessly.

* * *

### How to Find Your GTM ID

1.  Log in to [Google Tag Manager](https://www.google.com/search?q=https://tagmanager.google.com/).
    
2.  On the **All accounts** page, locate your company or account name.
    
3.  Find the specific website or container you wish to connect.
    
4.  Identify the ID under the **Container ID** column. It will be a string starting with "GTM-" (e.g., **GTM-M7MBVG8K**).
    
    ![](https://staticfiles.gleap.io/ghelparticle/CEpDhiYYX33fBp7muwUomwmlYVSIjRKJqUJZhIySXZTxVC2BW5KCygdJh0kvPQJz6xbMa8uHqM5.png)
    

5.  Copy the Container ID and open your [**Loyally.ai**](https://Loyally.ai) **Dashboard**.
    

* * *

### Integrating Google Tag Manager in Loyally.ai

Once you have retrieved your GTM Container ID, you can complete the integration within your [Loyally.ai](https://Loyally.ai) dashboard. This connection allows the platform to install external services and tracking scripts automatically.

![](https://staticfiles.gleap.io/ghelparticle/I4mx6wHcpllWrCBKS6TbgfmDvPDhwfGCm16nJj0iPM65DCvISRbQfpL8chc4hy7fxK0urMAuIYT.png)

1.  Log in to your [Loyally.ai](https://Loyally.ai) dashboard and select the '**Settings**' gear icon.
    
2.  Select the **'****White Label****'** tab from the top navigation menu.
    
3.  Select the **'****Other settings****'** option located on the right of the sub-menu.
    
4.  Use the search bar to find Google Tag Manager.
    
5.  Within the Google Tag Manager card, select the **'****Connect account****'** button.
    
6.  Paste your **GTM Container ID** into the provided field and save your changes.
    
7.  Select the **'****Connect****'** button to finalize the process.
    
    ![](https://staticfiles.gleap.io/ghelparticle/0nG8WBMnev7msm4BT5pzTdYMV5fAwmCzoitiSX6lfrycdaEgOsxgYCuiZhksguzCny1DFz2IM0G.png)
    
8.  The page will automatically reload once the connection is successful.
    

Your Google Tag Manager is now fully synced with your loyalty program to ensure seamless data tracking. You can now manage all your marketing tags and analytics scripts directly through your GTM workspace without further technical adjustments.

> **Info:** If the page does not reload automatically, refresh the browser to confirm the connection status has updated.

* * *

### Common Integration Issues

While the connection process is straightforward, you may encounter specific errors depending on your GTM container settings or browser configuration. Use the table below to identify and resolve common issues.

<table data-id="eb8735b0-b404-47f1-bfc5-846c8facc787" style="min-width: 75px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="0f9a0815-a90e-4eb8-95ac-cb8381ec3f6f"><strong>Error / Issue</strong></p></td><td colspan="1" rowspan="1"><p data-id="34078c1d-6179-48a5-9a09-e1f2b89e7eb7"><strong>Possible Cause</strong></p></td><td colspan="1" rowspan="1"><p data-id="45b05273-9922-4b82-b5b0-fe37c4661915"><strong>Workaround</strong></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="968c4269-c672-420a-b4b0-41511904e7a4">GTM Not Found</p></td><td colspan="1" rowspan="1"><p data-id="60addb05-bd76-49d0-b233-a46470644bef">Incorrect ID or the ID was entered without the GTM prefix</p></td><td colspan="1" rowspan="1"><p data-id="af3be2fa-1350-4d93-a079-827d74d80ff1">Double check the ID in GTM and ensure it is pasted exactly as GTM-XXXXXXX</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="3d5f1db3-30a4-46bd-9f5a-c5f1d78799d1">Tags Not Firing</p></td><td colspan="1" rowspan="1"><p data-id="9d67783e-71d4-4fea-8850-d8e9cce595f6">The GTM container is not published or is in Draft mode</p></td><td colspan="1" rowspan="1"><p data-id="cfd5eaa7-4b01-4592-8aaa-dfa4c8be74c8">Open your GTM workspace and select the Submit button to publish your latest version</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="7bfaefa5-b7aa-4f29-9ab7-ce733f0322ae">Widget Not Visible</p></td><td colspan="1" rowspan="1"><p data-id="be0b9524-bab0-459b-a3f0-caa9241edfaf">A Content Security Policy (CSP) is blocking external scripts</p></td><td colspan="1" rowspan="1"><p data-id="4da02b38-3c0e-4c05-846e-faf8aa6cd90a">Update your website headers to allow scripts from <a target="_blank" rel="noopener noreferrer nofollow" class="linktype-link link" data-linktype="link" href="https://googletagmanager.com">googletagmanager.com</a> and <a target="_blank" rel="noopener noreferrer nofollow" class="linktype-link link" data-linktype="link" href="https://loyally.ai">loyally.ai</a></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="9e6fc7c7-7203-4768-9c1e-6af32aa369bc">Data Mismatch</p></td><td colspan="1" rowspan="1"><p data-id="840950e4-2c1f-4df4-b884-3dd285c6cd37">Multiple GTM containers are installed on the same page</p></td><td colspan="1" rowspan="1"><p data-id="14376427-f376-4a3d-a2e1-79f6f9b37a07">Remove any redundant GTM scripts from your website header to prevent duplicate firing</p></td></tr></tbody></table>

* * *

### Best Use Cases and Examples

Connecting GTM isn't just about installation; it is about leveraging data for better retention.

-   **High-Value Conversion Tracking** Instead of just tracking clicks, send "Points Redeemed" events to Google Ads to find more customers who actually engage with your brand.
    
-   **Tier-Based Remarketing** Create custom audiences for customers who hit a specific VIP level, allowing you to show them exclusive ads.
    

### Real-World Example

If a customer reaches a **VIP Tier**, [Loyally.ai](https://Loyally.ai) sends that event to GTM. GTM then triggers a "VIP Tag" for your Facebook Pixel. Now, you can run a social media ad specifically for VIPs with a "Welcome to the Club" discount, making your marketing feel personal and high-end.

* * *

## Related Articles

[

White Label Your Loyally.ai Portal

Step-by-step instructions to set up a custom domain, upload your logos and favicons, choose your brand colors, and configure meta tags—so your customers always see your branding in the Loyally.ai experience.

](https://help.loyally.ai/en/articles/100-white-label-your-loyallyai-portal.md)
