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

# Ontraport integration

> Set up the Ontraport Cometly integration with a webhook step in an Ontraport automation, so each new contact is tied back to the ad that produced it.

The Ontraport Cometly integration sends contact data from Ontraport to Cometly automatically. You add a webhook step to an Ontraport automation. A webhook sends data from one app to another in real time, and each contact that reaches the step arrives in Cometly as an event (an action Cometly tracks, such as a lead).

This is useful for tracking lead conversions and syncing contact details into Cometly for attribution. Once Ontraport sends its contacts, you can see which campaign, ad set and ad produced each lead.

## How the Ontraport Cometly integration works

Cometly has no built-in Ontraport integration. You connect the two with a Cometly webhook URL. For the full webhook flow in Cometly, see [Webhooks](https://docs.cometly.com/integrations/webhooks.md).

## Step 1: Get a webhook URL in Cometly

1. In Cometly, click **Events Manager** in the sidebar, then click **Create Event**.
2. Under **App / Integration**, select **Webhooks**.
3. Under **Events**, choose the event you want Ontraport contacts to count as (for example **Lead**), then click **Create**.
4. The event appears in the Events Manager as a draft. Click **Configure** on its row.
5. Next to **Your webhook URL**, click **Copy**.

   ![Receive Data step of a Cometly webhook event for Lead data, with the Your webhook URL field, an arrow pointing to the Copy button and the Check for Data button below](https://mintcdn.com/cometly/alvP4_0ekdK-CBm_/images/integrations/platforms/ontraport/03.webp?fit=max\&auto=format\&n=alvP4_0ekdK-CBm_\&q=85\&s=159cd04cfb34d712a2fef71c5b743000)

## Step 2: Add the webhook to an Ontraport automation

1. **Go to Automations in Ontraport.** Open the **Automations** section in your Ontraport account. You can either:

   * create a new automation, **or**
   * update an existing automation, if it makes sense to send contact data to Cometly at a certain point in that flow.

2. **Add a webhook step.** Click the **+** icon where you want the webhook to be triggered and choose **Send to a Webhook** as the next action.

   ![Ontraport automation editor with an arrow on a Send to a Webhook step below the Added to Automation trigger](https://mintcdn.com/cometly/alvP4_0ekdK-CBm_/images/integrations/platforms/ontraport/01.webp?fit=max\&auto=format\&n=alvP4_0ekdK-CBm_\&q=85\&s=4e60605ab606f601366f1645b2f4f95a)

3. **Configure the webhook settings.**

   * **Destination URL:** paste the Cometly webhook URL you copied in Step 1.

   * **Webhook method:** select **POST** from the dropdown.

   * **POST data:** paste the following JSON in the data field:

     ```json theme={null}
     {
       "first_name": "[First Name]",
       "last_name": "[Last Name]",
       "email": "[Email]",
       "office_phone": "[Office Phone]"
     }
     ```

     Ontraport automatically replaces these bracketed fields with the contact's actual data when the webhook is sent.

4. **Publish your automation.** Click **Save**, then **Publish** to activate it.

## Step 3: Finish the event in Cometly

1. Send a contact through the automation in Ontraport so that the webhook fires once.
2. Back in Cometly, on the event's **Receive Data** step, click **Check for Data**.
3. Select the record that arrived and click **Continue With Selected Record**.
4. On the **Configure Mapping** step, map **Email** to the `email` field. **Email** and **Event Time** are required. Click **Add Field** to map **First Name**, **Last Name** and **Phone** to `first_name`, `last_name` and `office_phone`, then click **Save & Continue**.
5. On the **Filtering** step, add filters if you need them, then click **Activate**.

If no data has arrived yet, click **Save & Return When Data is Ready** and come back later: open **Events Manager** and click **Configure** on the draft event.

## Check it worked

In Cometly, open **Events Manager**. Your Ontraport webhook event shows a switch that is turned on in the **Status** column. Send another contact through the automation in Ontraport, 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 an Ontraport contact to show up in Cometly?

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

### Why is my Ontraport test contact missing from my Cometly reports?

Test data sent before the webhook event was activated is not processed and does not appear in your reports. Activate the event in Cometly first, then send a new contact through the automation in Ontraport.

### Can I track more than one Ontraport event in Cometly?

Yes. Create a separate webhook event in Cometly for each one (for example **Lead** and **Purchase**), which gives you a separate webhook URL. Then add a **Send to a Webhook** step with that URL at the matching point in your Ontraport automations.

## Next steps

* [Follow the full Cometly webhooks guide](https://docs.cometly.com/integrations/webhooks.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)
* [Plan which events to track](https://docs.cometly.com/getting-started/tracking-plan.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.