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

# Cognito Forms form tracking

> Set up Cognito Forms form tracking in Cometly: add the pixel to your form so each lead's name and email are captured and tied to its ad.

Cognito Forms form tracking in Cometly works by adding the Cometly pixel (the tracking script you install on your site) to your Cognito Forms form. With the pixel on the form, Cometly can track form submissions and capture key data such as email addresses and names.

The email address is what matters most. Cometly uses it to connect the person who filled in your form to the ad or channel that brought them to your site, so you can see which ads produce your leads.

## Before you start

Copy your Cometly pixel script. In Cometly, go to **Setup**, open step 2 **Install the Cometly pixel**, and click **Copy Code** in the **Install the pixel** section.

## Add the Cometly pixel to your form

![Cognito Forms builder with arrows on the Settings tab and the New Pixel link under Tracking Pixels](https://mintcdn.com/cometly/4NU5YV9iL1PADmGE/images/integrations/forms/cognito-forms/01.webp?fit=max\&auto=format\&n=4NU5YV9iL1PADmGE\&q=85\&s=5930ba2cdeed198f067aaf967a7d62f2)

**1. Open the Settings tab**

Open the Cognito Forms form you want to add the pixel to, and go to the **Settings** tab.

**2. Add a new pixel**

1. In the **Tracking Pixels** section, click **+ New Pixel**.
2. Paste your Cometly pixel script into the **Pixel Code** field.
3. Click **Save**.

**3. Enable Analytics & Tracking**

Locate the **Analytics & Tracking** section under **Form Settings** and toggle it **on**. This is required for the tracking pixel to work.

![Cognito Forms Form Settings with an arrow on the Analytics and Tracking toggle](https://mintcdn.com/cometly/4NU5YV9iL1PADmGE/images/integrations/forms/cognito-forms/03.webp?fit=max\&auto=format\&n=4NU5YV9iL1PADmGE\&q=85\&s=d180d92a48a12dd6a03a074eb7cc75ee)

**4. Save and publish the form**

Save your changes so the pixel is applied, then publish your form to start tracking form submissions.

## Confirm the pixel is installed in both places

The pixel must exist in both locations to capture form field data correctly:

* **On the Cognito Forms form itself:** the Cometly pixel script is added in the form's **Tracking Pixels** section, as described above.
* **On the page where the form is embedded:** the Cometly pixel is also installed on the webpage that embeds the form. See [Install the pixel](https://docs.cometly.com/getting-started/install-pixel.md).

## Check it worked

Use the [Cometly Pixel Helper](https://docs.cometly.com/guides/tracking/pixel-helper.md) to verify that the email address field is captured automatically. You can also test a page in Cometly under **Setup**, step 2, in the **Test form tracking** section. See [Test form tracking](https://docs.cometly.com/guides/form-tracking/testing.md). When the test passes, the page appears under **Tested pages** with the status **Forms detected**, and its email field is listed under **Detected fields**.

## Send event data from Cognito Forms to Cometly

To send events for Cognito Forms submissions to Cometly with Cometly webhooks, see [Set up the Cognito Forms integration](https://docs.cometly.com/integrations/platforms/cognito-forms.md). An event is an action Cometly records, such as a lead or a sale.

## Frequently asked questions

### Which Cognito Forms fields does Cometly capture?

The Cometly pixel captures full name, first name, last name, email address and phone number. Email is the most important one, because Cometly uses it to match a form submission to the right person.

### Do I need the Cognito Forms webhook as well as form tracking?

They do different jobs. Form tracking captures the contact details a visitor types into the form, and the webhook sends each form entry to Cometly as an event. If you want form entries to appear as events in Cometly, set up form tracking first, then add the webhook.

### Why is Cometly not capturing data from my Cognito Forms form?

Check that the Cometly pixel is in both places: in the form's **Tracking Pixels** section and on the page that embeds the form. Then make sure **Analytics & Tracking** is toggled on in the form's settings and that the form is published. If a field is still missing, follow the [form tracking troubleshooting guide](https://docs.cometly.com/support/troubleshooting/form-tracking/troubleshooting-form-tracking.md).

## Next steps

* [Test form tracking on the page that holds your form](https://docs.cometly.com/guides/form-tracking/testing.md)
* [Send Cognito Forms entries to Cometly as events](https://docs.cometly.com/integrations/platforms/cognito-forms.md)
* [Learn how form tracking works](https://docs.cometly.com/getting-started/form-tracking.md)
* [Troubleshoot form tracking](https://docs.cometly.com/support/troubleshooting/form-tracking/troubleshooting-form-tracking.md)
* [Set up form tracking for other third-party embedded forms](https://docs.cometly.com/guides/form-tracking/third-party-forms.md)

Still have questions or need a hand? We're happy to help. Reach our team at [support@cometly.com](mailto:support@cometly.com).


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