> ## Documentation Index
> Fetch the complete documentation index at: https://fillout.com/help/llms.txt
> Use this file to discover all available pages before exploring further.

# Track data with Google Tag Manager

> Track activity and monitor data across your web pages with Google Tag Manager and Fillout forms. Check conversions and ROI through form responses in your website.

## What is Tag Manager?

[Google Tag Manager](https://tagmanager.google.com/?ref=fillout-forms-help-article) is a free tool that allows you to manage and deploy marketing tags on your website without editing the code. It simplifies tracking and analytics for better insights and optimization.

Tag Manager works using two main components:

* **Tags** – the data you want to send (for example, an event sent to Google Analytics).
* **Triggers** – the actions that cause the tag to fire (such as a form submission).

To detect these actions, Tag Manager uses built-in **variables** like Clicks and Forms, which allow it to recognize interactions such as button clicks or form submissions.

## How it works

<Steps>
  <Step title="Link your Fillout form to Tag Manager">
    First, open your Fillout form or create a new one. Then, navigate to `Integrate` from the top menu and look for `Tag Manager`.

    <img src="https://mintcdn.com/fillout-005a867b/NlYIq_quqHJ0EZ7L/images/Screenshot2025-11-12at3.52.44PM.png?fit=max&auto=format&n=NlYIq_quqHJ0EZ7L&q=85&s=a8a2de64d1ca7d7e4de934d494bb820d" alt="Screenshot 2025-11-12 at 3.52.44 PM.png" width="2630" height="1434" data-path="images/Screenshot2025-11-12at3.52.44PM.png" />

    `Connect a custom domain` to get started. Follow the quick instructions in the next screen to enter your **Google Tag Manager container ID**.

    <Warning>
      Only [admins](https://www.fillout.com/help/granular-permissions#admin-vs-non-admins) will be able to add a [custom domain](https://www.fillout.com/help/custom-domains). Unlike other integrations, Tag Manager doesn't come with OAuth.
    </Warning>
  </Step>

  <Step title="Set variables">
    In your Tag Manager **Workspace**, head over to `Variables` from the left panel and click `Configure`.

    <img src="https://mintcdn.com/fillout-005a867b/h_QfN-F56vlvgBC6/images/Screenshot2025-02-18at2.21.34PM.png?fit=max&auto=format&n=h_QfN-F56vlvgBC6&q=85&s=ab4d5a19f2e80eb3f7864b5228c92f0e" alt="Screenshot of the Integrate tab of a form" width="2665" height="935" data-path="images/Screenshot2025-02-18at2.21.34PM.png" />

    Scroll down and **tick** all variables under **Clicks** and **Forms**.

    <img src="https://mintcdn.com/fillout-005a867b/EWWAc-_JdWWmQY9h/images/Screenshot2024-08-28at5.08.24PM.png?fit=max&auto=format&n=EWWAc-_JdWWmQY9h&q=85&s=ca1671cfd305a9fa3afae03fd00763a2" alt="Screenshot of the Integrate tab of a form" style={{ width:"62%" }} width="1054" height="1104" data-path="images/Screenshot2024-08-28at5.08.24PM.png" />
  </Step>

  <Step title="Add tags">
    Then, go back to your **Workspace**. Click `Tags` in the left panel followed by `New`.

    In **Tag Configuration**, we’ll choose `Google Analytics`. Copy and paste the [**Measurement ID**](https://support.google.com/analytics/answer/12270356?hl=en) and enter an **Event Name**.

    <img src="https://mintcdn.com/fillout-005a867b/EWWAc-_JdWWmQY9h/images/Screenshot2024-08-28at5.28.05PM.png?fit=max&auto=format&n=EWWAc-_JdWWmQY9h&q=85&s=7ab1d26601ab8ae34d18bfa3c25795aa" alt="Screenshot of the Integrate tab of a form" width="2130" height="825" data-path="images/Screenshot2024-08-28at5.28.05PM.png" />

    Click `Save` in the upper right corner.
  </Step>

  <Step title="Add triggers">
    Click `Add Trigger` followed by **+** on the right corner and set your preferences. In our example, we’ll fire the trigger when respondents click the submit button in the Fillout form.

    <img src="https://mintcdn.com/fillout-005a867b/EWWAc-_JdWWmQY9h/images/Screenshot2024-08-28at5.41.45PM.png?fit=max&auto=format&n=EWWAc-_JdWWmQY9h&q=85&s=294619d292ab0c3c3601caa51fd1cc1b" alt="Screenshot of the Integrate tab of a form" width="2151" height="806" data-path="images/Screenshot2024-08-28at5.41.45PM.png" />

    `Preview` the setup on Google Tag Manager. Once everything’s good, click `Submit`.
  </Step>

  <Step title="Publish and share">
    Go back to your Fillout form to `Finish setup` and `Publish`.
  </Step>
</Steps>

## Advanced (Optional)

**Send submission data to Google Tag Manager**

To send submission data using `dataLayer.push`, add a **Custom Code** or **HTML block** to your form. You can place your tracking script there and reference form field values or submission data in the `dataLayer.push`.

**Track events between form pages**

For multi-page forms, you can add an HTML block to add a script to the pages you want to track. This lets you track different events for each page as the respondent navigates through the form.

## Related article

<CardGroup cols={3}>
  <Card color="#FFC738" icon="google-plus-g" iconType="regular" href="/google-ads-conversions" title="Track conversion data in Google Ads">
    Use email, GCLID, address, and more.
  </Card>
</CardGroup>
