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

# Add Meta Pixel and Google Tag Manager

> Add your Meta Pixel or Google Tag Manager container to a brand's forms. They load only after the visitor agrees.

If you run ads, you can add your Meta Pixel or a Google Tag Manager container to your forms so your ad platforms see the visits. Crestform adds no tracking of its own, and loads yours only when the visitor says yes.

> [!NOTE]
>
> Available on Plus, Pro and Business.

## Add your IDs

**1. Open Tracking**

Go to **Settings**, open the **Integrations** tab, and scroll to **Tracking**.

**2. Enter one or both IDs**

**Meta Pixel ID**: digits only, from Meta Events Manager, for example `123456789012345`.

**GTM container ID**: from Google Tag Manager, in the form `GTM-ABC1234`.

Leave a box blank if you don't use that tool.

**3. Save**

Click **Save tracking**.

The IDs apply to **every form in the brand**, on its link, its custom domain and when embedded. There is no per-form setting. Each brand has its own IDs, so two brands never share a pixel.

To stop tracking, clear the box and click **Save tracking** again.

## What visitors see

When a brand has a pixel or container set, visitors see a small bar on the form:

> This form can share your visit with Meta (Facebook). It is not needed to fill the form in.

The bar names whichever tools you added, for example "Meta (Facebook) and Google Tag Manager". It has two equal buttons, **Decline** and **Accept**.

* **Nothing loads until the visitor clicks Accept.** Before that, the page makes no request to Meta or Google at all.
* **Decline** keeps both tools off. The form works exactly the same either way.
* After choosing, the visitor sees a small **Tracking preferences** link and can change their mind at any time.
* The choice is remembered on that device for your brand only. Another brand's form asks again.

When accepted, the Meta Pixel records a page view. With Google Tag Manager, your container loads and runs the tags you set up in it.

> [!NOTE]
>
> Visitors who decline are not counted. Expect lower numbers in Meta or Google than on pages that don't ask first.

## Common questions

> [accordion] The save button is greyed out
>
> One of the IDs isn't in the right format. A Meta Pixel ID is digits only. A GTM container ID starts with `GTM-`. The hint under the box says what's wrong.

> [accordion] Can I turn the consent bar off?
>
> No. The bar is what lets these tools run on your forms at all, and it protects your respondents.

> [accordion] Can I add other tracking scripts?
>
> No. Meta Pixel and Google Tag Manager are the only two. You can add other tags inside your Google Tag Manager container.

## Related

> [card] [Track sources](https://crestform.io/docs/share/track-sources.md)
>
> See which links and campaigns bring responses.

> [card] [Embed on your website](https://crestform.io/docs/share/embed.md)
>
> Put a form on your own site.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.