> ## 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 integration

> Set up the Cognito Forms Cometly integration: send each form entry to Cometly as an event with a webhook, so you can see which ad produced each lead.

The Cognito Forms Cometly integration uses a webhook, a URL that one app posts data to in real time. Cognito Forms can post each form entry to a URL. To send those entries to Cometly as events (an event is an action Cometly tracks, such as a form submission or a lead), you create a webhook event in Cometly and paste its URL into your form's settings.

This matters because Cometly can only attribute the events it receives. Once your form entries arrive as events, you can see which campaign, ad set and ad produced each lead.

## Before you start

* If you use Cognito Forms on your website, set up form tracking first. Follow the [Cognito Forms form tracking guide](https://docs.cometly.com/integrations/forms/cognito-forms.md).
* Use a different Cometly webhook for each form you want to track.

## Step 1: Create a webhook event in Cometly

1. In Cometly, click **Events Manager** in the sidebar, then click **Create Event**.
2. Under **App / Integration**, select **Webhooks**.
3. Pick the event you want the form to send (or choose **Create New Event**), then click **Create**.
4. Copy the URL shown under **Your webhook URL**.

   ![Cometly Receive Data step for a Lead webhook event, with the Your webhook URL field blurred, an arrow on the Copy button and the Check for Data button below](https://mintcdn.com/cometly/2fSDFk1g6ELl9hsV/images/integrations/platforms/cognito-forms/03.webp?fit=max\&auto=format\&n=2fSDFk1g6ELl9hsV\&q=85\&s=30a46153273baf468b820fc6a8108805)

The [Cometly Webhooks guide](https://docs.cometly.com/integrations/webhooks.md) covers these steps in detail.

## Step 2: Add the webhook in Cognito Forms

Follow these steps to add the webhook to your Cognito Form. Cognito Forms also documents this in its own [webhooks help article](https://www.cognitoforms.com/support/66/data-integration/webhooks).

1. **Open the form settings**

   Open the Cognito Form you want to integrate. On the **Build** page, click the **Settings** tab.

   ![Cognito Forms builder with Build, Settings and the Post JSON Data to a Website section highlighted](https://mintcdn.com/cometly/2fSDFk1g6ELl9hsV/images/integrations/platforms/cognito-forms/01.webp?fit=max\&auto=format\&n=2fSDFk1g6ELl9hsV\&q=85\&s=e286a306e4d07a1d6c20b5bc54773588)

2. **Enable Post JSON Data to a Website**

   * Scroll down to the **Post JSON Data to a Website** section under **Form Settings**.
   * Toggle the option **on** to activate webhooks.

   > [!WARNING]
   >
   > This toggle must be on for the webhook to work. If it is off, no data is sent to Cometly.

3. **Add the Cometly webhook URL**

   * In the **Submit Entry Endpoint** field, paste the webhook URL you copied from Cometly.
   * If needed, you can also use the **Update Entry Endpoint** to track updates to form submissions.
   * Save your changes.

   ![Cognito Forms settings with an arrow on the Submit Entry Endpoint field under Post JSON Data to a Website](https://mintcdn.com/cometly/2fSDFk1g6ELl9hsV/images/integrations/platforms/cognito-forms/02.webp?fit=max\&auto=format\&n=2fSDFk1g6ELl9hsV\&q=85\&s=61331dbab51efbb0b957e38a2620a1ab)

4. **Repeat for each form**

   * Add a webhook to each Cognito Form on your site that you want to track.
   * Create a separate Cometly webhook for every form so that submissions and events are tracked accurately.

## Step 3: Finish the webhook in Cometly

Cometly needs at least one entry from the form before you can map it, so submit a test entry on your form. Then go back to the webhook event in Cometly and click **Check for Data**. Once the entry appears, follow the [Cometly Webhooks guide](https://docs.cometly.com/integrations/webhooks.md) to:

* Map the webhook data to the appropriate fields in Cometly.
* Set up filters so that only the data you want is tracked.
* Activate the webhook.

After that, your Cognito Forms submissions are sent to Cometly as events.

## Check it worked

In [Events Manager](https://app.cometly.com/space/events-manager), your webhook event shows a switch that is turned on in the **Status** column. Submit a new entry on your form, then open the **Events Log** tab: the event appears there within 60 seconds, with **SUCCESS** in the **Details** column.

## Frequently asked questions

### How long does it take for a Cognito Forms submission to show up in Cometly?

The event shows in the Events Log within 60 seconds of the entry being submitted. It can take up to 15 minutes to appear in the reporting areas, such as the Report Builder or Ads Manager.

### Why is my Cognito Forms test entry not showing up in Cometly?

Check that **Post JSON Data to a Website** is toggled on, that the webhook URL is in the **Submit Entry Endpoint** field and that you saved the form. Then submit a new entry and click **Check for Data** again. Test entries sent before the webhook was activated are not processed and do not appear in your reports.

### Which fields do I have to map for a Cognito Forms webhook?

**Email** and **Event Time** are required. If your form data has no event time, choose **The time we receive the event** for **Event Time**, and Cometly uses the time the entry arrives. You can map more fields, such as name and phone number, to add that information to the contact in Cometly.

## Next steps

* [Map, filter and activate your webhook](https://docs.cometly.com/integrations/webhooks.md)
* [Set up Cognito Forms form tracking](https://docs.cometly.com/integrations/forms/cognito-forms.md)
* [Use the Events Log to check incoming events](https://docs.cometly.com/support/troubleshooting/general/event-log.md)
* [Learn how events work in Cometly](https://docs.cometly.com/guides/events/how-events-work.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.