# How to capture UTM tags using Meta Instant Forms

## Creating and configuring the form

Inside the **Meta Business Suite**, look for the section **“Instant Forms”** to view the listing 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: tracking with UTM**

During the process of creating or editing the form, go to the **“Completion”**.\
At this stage, select the additional action **“Go to website”,** this is where you can insert your website link with the [UTM tags](https://docs.sprinthub.com/en/topics/settings/tracking/tracking-utm-tag) already defined.

An example of a complete link would be:

```
http://your-website.com/?utm_source=facebook&utm_medium=lead_form&utm_campaign=customer_signup&utm_content=instant_form
```

These tags allow you to identify the exact origin of leads that came from the instant form, making it easier to follow up on campaigns.

{% hint style="warning" %}
Make sure the site has the [tracking script](https://docs.sprinthub.com/en/getting-started/tracking-script) from Sprinthub installed.\
Without it, the lead will not be automatically registered and tracked 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&#x26;token=fdcbe16c-f317-4129-88f6-55c5f5be5571" alt=""><figcaption><p><em>Instant forms / Lead ad 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&#x26;token=81ca7a04-0c9e-403b-b0c9-895ef0c7431f" alt=""><figcaption><p><em>'Questions' step of form creation.</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&#x26;token=2328f907-ea1f-479a-a602-8486043fa19a" alt=""><figcaption><p><em>'Completion' step of form creation.</em></p></figcaption></figure></div>

## Configuring the external form in Sprinthub

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

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

{% hint style="info" %}
You must have a [Meta account connected to Sprinthub](https://docs.sprinthub.com/en/topics/settings/account-settings/meta-accounts) to configure mapping of a form.
{% 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&#x26;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 using the **“Test Forms”** option inside 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, upon completion and clicking to be redirected to the configured site, the lead will be created automatically in Sprinthub and your UTM tags will be added automatically, as will its source. 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&#x26;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&#x26;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&#x26;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 view:

* All fields mapped in the External Forms settings;
* The interaction event with the Meta form;
* The fbclid and the Meta lead ID, available in “**Third Party Data**”;
* And the UTM tags recorded on 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&#x26;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&#x26;token=7359eb35-13e6-4f23-8b72-9c29eb08d87f" alt=""><figcaption><p><em>Contact activity history.</em></p></figcaption></figure></div>
