> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/strategies/meta-business/how-to-capture-utm-tags-using-meta-instant-forms.md).

# How to capture UTM tags using Meta Instant Forms

How to send tracked leads from Meta directly to Sprinthub.

## Creating and configuring the form

Within **Meta Business Suite**, look for the section **“Instant Forms”** to view the list of all your existing forms. From there, create a new one and define which fields should be filled out by the customer (name, email, phone, etc.).

#### **Important step: UTM tracking**

During the form creation or editing process, go to the step **“Closing”**.\
At this stage, select the additional action **“Go to website,”** this is where you can enter your website link with the [UTM tags](/en/topics/system-settings/tracking/tracking-utm-tag.md) already defined.

An example of a complete link would be:

```
http://seu-site.com/?utm_source=facebook&utm_medium=lead_form&utm_campaign=cadastro_clientes&utm_content=form_instantaneo
```

These tags make it possible to identify the exact source of leads that came from the instant form, making it easier to track campaigns.

{% hint style="warning" %}
Make sure the website has the [tracking script](/en/getting-started/tracking-script.md) Sprinthub installed.\
Without it, the lead will not be recorded and tracked automatically within the platform
{% endhint %}

<div data-with-frame="true"><figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FEzs2TneLYmefjHuyjbpJ%2F1.png?alt=media&amp;token=fdcbe16c-f317-4129-88f6-55c5f5be5571" alt=""><figcaption><p><em>Instant forms / Lead ads forms.</em></p></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FewDi84qCrIH4CLbuwlJU%2F2.png?alt=media&amp;token=81ca7a04-0c9e-403b-b0c9-895ef0c7431f" alt=""><figcaption><p><em>Form creation 'Questions' step.</em></p></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FUDskdavLm6o5lRI8NL5o%2F3.png?alt=media&amp;token=2328f907-ea1f-479a-a602-8486043fa19a" alt=""><figcaption><p><em>Form creation 'Closing' step.</em></p></figcaption></figure></div>

## Configuring the external form in Sprinthub

In System Settings → External Forms, you will see the list of forms available for mapping. Click the gear icon to configure the form, map the fields, and set up page tracking.

In the **“Page Tracking”**, enter the same URL used in the Instant Form, including the UTM tags.

{% hint style="info" %}
You need to have a [Meta account connected to Sprinthub](/en/topics/system-settings/account-settings/meta-accounts.md) to configure a form mapping.
{% endhint %}

<div data-with-frame="true"><figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FtOrgxkXm0W2EbVL4m0yY%2F3.5%20-%20configurando%20formulario%20externo.png?alt=media&amp;token=c58899ba-cb37-4828-991a-3ab89652dd34" alt=""><figcaption><p><em>External form mapping.</em></p></figcaption></figure></div>

## Testing form submission

You can perform a test submission directly through the option **“Test Forms”** within the **Meta Business Suite**, or by accessing Meta's test link:\
👉 <https://developers.facebook.com/tools/lead-ads-testing>

Just fill out the form as if you were a real customer. And when you finish and click to be redirected to the configured website, the lead will be created automatically in Sprinthub and its UTM tags will be added automatically, as well as its source. The verification of this information will be shown in the next step of the tutorial.

<div data-with-frame="true"><figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FoA3zsGknLOP583bhO7NB%2F4%20-%20teste.png?alt=media&amp;token=a9956485-469e-4455-8daa-bd4f0880d6d8" alt=""><figcaption><p><em>Accessing 'Test Form'.</em></p></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FtZRwIbv70Lf1c0B0FYzC%2F5%20-%20teste%20form.png?alt=media&amp;token=e194c78e-c2b8-431b-bb7c-303a426ec2bb" alt=""><figcaption><p><em>Filling in contact information.</em></p></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FacDMkblVJwQPWeZAST2A%2F6%20-%20teste%20form.png?alt=media&amp;token=de6cc847-c083-42f2-954d-37fed05dfbc1" alt=""><figcaption><p><em>Redirect button.</em></p></figcaption></figure></div>

## Verifying the created contact

When accessing the contact created within Sprinthub, you will be able to see:

* All fields mapped in the External Forms settings;
* The interaction event with the Meta form;
* The fbclid and Meta lead ID, available in “**Third-Party Data**”;
* And the UTM tags recorded in the “**UTM Tags**”.

This information confirms that tracking and mapping were configured correctly.

<div data-with-frame="true"><figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2F2THvJmwobmT7u3jUeidq%2F7-dados%20lead.png?alt=media&amp;token=0beec844-d7f4-4975-8774-70621ce57021" alt=""><figcaption><p><em>UTM Tags.</em></p></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FNuhPXUWXnX84x8OHyXqc%2F8-dados%20lead.png?alt=media&amp;token=7359eb35-13e6-4f23-8b72-9c29eb08d87f" alt=""><figcaption><p><em>Contact activity history.</em></p></figcaption></figure></div>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sprinthub.com/en/strategies/meta-business/how-to-capture-utm-tags-using-meta-instant-forms.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
