---
title: Integrate Google Tag Manager
slug: integrate-google-tag-manager
docTags: 
createdAt: 2026-09-01T20:40:05.622Z
---

::Iframely{originalUrl="https://youtu.be/8bHxGeGeM8U?si=z8GJa9RiLjSE1SrF" embedUrl="https://youtu.be/8bHxGeGeM8U?si=z8GJa9RiLjSE1SrF" title="How to connect Google Tag Manager to Fibr?" html="<div style=&#x22;left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.25%;&#x22;><iframe src=&#x22;https://www.youtube.com/embed/8bHxGeGeM8U?rel=0&#x22; style=&#x22;top: 0; left: 0; width: 100%; height: 100%; position: absolute; border: 0;&#x22; allowfullscreen scrolling=&#x22;no&#x22; allow=&#x22;accelerometer *; clipboard-write *; encrypted-media *; gyroscope *; picture-in-picture *; web-share *;&#x22; referrerpolicy=&#x22;strict-origin&#x22;></iframe></div>"}

## What You’ll Need

- "Manage Integrations Access" in the Fibr Dashboard
- A valid Google Tag Manager account
- Access to the appropriate GTM container
- Publishing permissions in GTM

## Step-by-Step Integration Guide

:::::WorkflowBlock
:::WorkflowBlockItem
Navigate to Settings > Integrations on the Left-Hand Menu on the Dashboard
:::

:::WorkflowBlockItem
Click the Connect button on the GTM card.
:::

::::WorkflowBlockItem
Sign in to your Google Account connected to Google Tag Manager(GTM) and allow access when prompted.

:::hint{type="success"}
This method uses **OAuth 2.0 Authorization Code Flow**, a secure industry-standard process. This process is secure, fully compliant with Google’s API policies, and does not expose your credentials to Fibr.
:::
::::

:::WorkflowBlockItem
Select and Link Your GTM Container. Follow these steps to link your GTM container:

- On the GTM connection page, click on the Google Tag Manager button. This will open your GTM dashboard in a new tab.
- Inside GTM, select the container you wish to connect.
- Copy the URL of the container page.
- Paste this URL back into the Fibr dashboard and click Next.
:::

:::WorkflowBlockItem
Review the list of default variables and tags to sync and Approve the list.
:::

:::WorkflowBlockItem
Choose and Approve Fibr events (e.g., impressions, conversions) you’d like GTM to track.
:::

:::WorkflowBlockItem
Publish Your Changes in GTM

- Go back to your GTM Dashboard.
- Open the container you linked.
- Click Submit > Publish > Continue to apply the changes.
:::

:::WorkflowBlockItem
Return to the Fibr dashboard and click Approve to finalize the setup.
:::
:::::

## What Fibr Sends to the GTM Data Layer

Once connected, Fibr pushes events to the data layer each time a visitor sees a variantt. These events allow you to route important personalization and experiment data into platforms like GA4, Meta Ads, Mixpanel, and more via GTM.

Event Name: **fibr\_track\_event**

| Variable                    | Description                                     |
| --------------------------- | ----------------------------------------------- |
| fibr\_session\_id           | User session information ID                     |
| fibr\_user\_id              | Fibr unique user ID                             |
| fibr\_variation\_id         | Fibr experience user ID                         |
| fibr\_variation\_name       | Fibr experience name                            |
| fibr\_campaign\_type        | Personalization or Experiment                   |
| fibr\_campaign\_name        | Fibr campaign name                              |
| fibr\_campaign\_id          | Fibr campaign ID                                |
| fibr\_event                 | Always set to fibr\_track\_event                |
| fibr\_workflow\_id          | Fibr workflow ID                                |
| fibr\_campaign\_group\_name | Name of the personalization or experiment group |

These variables are automatically added to your GTM container during the integration process and can be used to create:

- Data Layer Variables
- Triggers
- Custom Tags

This setup gives you full control to build cross-platform tracking and analytics workflows using the data Fibr provides.
