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

# Send ClickFunnels events with webhooks

> Send ClickFunnels events to Cometly with webhooks, so each lead, opportunity and payment is tied back to the ad that produced it.

A webhook sends data from one app to another the moment something happens. This guide shows you how to send ClickFunnels events to Cometly with webhooks: you add an endpoint in ClickFunnels for each event (an action Cometly tracks, such as a lead or a payment) and point it at a webhook URL from Cometly.

Cometly can only attribute the events it receives. Once ClickFunnels sends its form submissions, opportunities and payments, you can see which campaign, ad set and ad produced each one. Webhooks are an alternative to Cometly's direct ClickFunnels integration. To use the direct integration instead, see [ClickFunnels](https://docs.cometly.com/integrations/platforms/clickfunnels.md).

## Before you start

* Install the Cometly pixel (the tracking script that records your visitors) in your ClickFunnels account. See the [ClickFunnels pixel installation guide](https://docs.cometly.com/integrations/pixel/clickfunnels.md).
* Read the [Cometly webhooks guide](https://docs.cometly.com/integrations/webhooks.md). It explains mapping and filters, which you use at the end of each setup below.

## What you can send

| Event | ClickFunnels event type | When the webhook fires |
| - | - | - |
| [Leads](#send-lead-events) | `form_submission.created` | A new form submission occurs in ClickFunnels |
| [Opportunity Created](#send-opportunity-created-events) | `sales/opportunity.created` | A new opportunity is created in ClickFunnels |
| [Opportunity Closed Won](#send-opportunity-closed-won-events) | `sales/opportunity.closed` | An opportunity is moved to Closed Won in ClickFunnels |
| [New Payment](#send-payment-events) | `order.completed` | A new payment is created in ClickFunnels |

[View the full list of ClickFunnels webhook events](https://developers.myclickfunnels.com/docs/webhook-event-types)

> [!TIP]
>
> Set up one event at a time. Each event needs its own endpoint in ClickFunnels and its own webhook URL from Cometly.

## Send lead events

**1. Open Workspace Settings in ClickFunnels**

Log in to your ClickFunnels account. In the left-hand menu, click **Workspace Settings**.

![ClickFunnels left menu with Workspace Settings highlighted](https://mintcdn.com/cometly/4NU5YV9iL1PADmGE/images/integrations/guides/clickfunnels-webhooks/01.webp?fit=max\&auto=format\&n=4NU5YV9iL1PADmGE\&q=85\&s=22a9a788257c5fd4949ec0683dd5640f)

**2. Add a webhook endpoint**

Select **Webhooks** from the settings menu, then click **Add new endpoint**.

![ClickFunnels Webhooks endpoints page with the Add new endpoint button highlighted](https://mintcdn.com/cometly/4NU5YV9iL1PADmGE/images/integrations/guides/clickfunnels-webhooks/02.webp?fit=max\&auto=format\&n=4NU5YV9iL1PADmGE\&q=85\&s=faa62bc52299608300ae3d1ce3aa4b8b)

**3. Configure the endpoint**

Fill out the fields, but do not save yet:

* **Name**: a name that clearly identifies the event, for example "New Form Submission - Cometly".
* **URL**: leave empty for now. You get your Cometly webhook URL in the next step.
* **Event types**: select `form_submission.created` to trigger the webhook whenever a new form submission is created.
* **API Version**: choose **V2**.
* **Endpoint scopes** (optional): leave blank to send events for all contacts. To limit the webhook to specific funnels or pages, select them here.

**4. Create the event in Cometly and copy the webhook URL**

1. In Cometly, go to **Events Manager** and click **Create Event**.
2. Under **App / Integration**, select **Webhooks**.
3. Select the event name. We recommend the **Lead** event for this setup. Click **Create**.
4. Under **Your webhook URL**, click **Copy**.

![The Receive Data step for a new Lead webhook event in Cometly, showing Your webhook URL with the address blurred and the Check for Data button, with a box around the Copy button.](https://mintcdn.com/cometly/4NU5YV9iL1PADmGE/images/integrations/guides/clickfunnels-webhooks/13.webp?fit=max\&auto=format\&n=4NU5YV9iL1PADmGE\&q=85\&s=e2ec4820bcff1c9f1d4822c98f67cf08)

Leave this Cometly page open. You come back to it after the next step.

**5. Save the endpoint in ClickFunnels**

Paste the Cometly webhook URL into the **URL** field of your endpoint in ClickFunnels, then click **Create endpoint**.

**6. Finish the setup in Cometly**

Back in Cometly, click **Check for Data** and select a record once ClickFunnels has sent one. Then map the webhook data to the Cometly fields, add any filters and activate the event. The [Cometly webhooks guide](https://docs.cometly.com/integrations/webhooks.md) explains each of these steps.

## Send opportunity created events

**1. Open Workspace Settings in ClickFunnels**

Log in to your ClickFunnels account. In the left-hand menu, click **Workspace Settings**.

**2. Add a webhook endpoint**

Select **Webhooks** from the settings menu, then click **Add new endpoint**.

**3. Configure the endpoint**

Fill out the fields, but do not save yet:

* **Name**: a name that clearly identifies the event, for example "New Opportunity Created - Cometly".
* **URL**: leave empty for now. You get your Cometly webhook URL in the next step.
* **Event types**: select `sales/opportunity.created` to trigger the webhook whenever a new opportunity is created in ClickFunnels.
* **API Version**: choose **V2**.
* **Endpoint scopes** (optional): leave blank so all opportunities in your ClickFunnels account are sent, regardless of the funnel or page.

**4. Create the event in Cometly and copy the webhook URL**

1. In Cometly, go to **Events Manager** and click **Create Event**.
2. Under **App / Integration**, select **Webhooks**.
3. For the event name, we recommend choosing **Create New Event** and naming it **Opportunity Created**. Click **Create**.
4. Under **Your webhook URL**, click **Copy**.

Leave this Cometly page open. You come back to it after the next step.

**5. Save the endpoint in ClickFunnels**

Paste the Cometly webhook URL into the **URL** field of your endpoint in ClickFunnels, then click **Create endpoint**.

**6. Finish the setup in Cometly**

Back in Cometly, click **Check for Data** and select a record once ClickFunnels has sent one. Then map the webhook data to the Cometly fields, add any filters and activate the event. The [Cometly webhooks guide](https://docs.cometly.com/integrations/webhooks.md) explains each of these steps.

## Send opportunity closed won events

**1. Open Workspace Settings in ClickFunnels**

Log in to your ClickFunnels account. In the left-hand menu, click **Workspace Settings**.

**2. Add a webhook endpoint**

Select **Webhooks** from the settings menu, then click **Add new endpoint**.

**3. Configure the endpoint**

Fill out the fields, but do not save yet:

* **Name**: a name that clearly identifies the event, for example "New Opportunity Closed Won - Cometly".
* **URL**: leave empty for now. You get your Cometly webhook URL in the next step.
* **Event types**: select `sales/opportunity.closed` to trigger the webhook whenever an opportunity is marked as Closed Won in ClickFunnels.
* **API Version**: choose **V2**.
* **Endpoint scopes** (optional): leave blank so all opportunities in your ClickFunnels account are sent, regardless of the funnel or page.

**4. Create the event in Cometly and copy the webhook URL**

1. In Cometly, go to **Events Manager** and click **Create Event**.
2. Under **App / Integration**, select **Webhooks**.
3. For the event name, we recommend choosing **Create New Event** and naming it **Opportunity Closed Won**. Click **Create**.
4. Under **Your webhook URL**, click **Copy**.

Leave this Cometly page open. You come back to it after the next step.

**5. Save the endpoint in ClickFunnels**

Paste the Cometly webhook URL into the **URL** field of your endpoint in ClickFunnels, then click **Create endpoint**.

**6. Finish the setup in Cometly**

Back in Cometly, click **Check for Data** and select a record once ClickFunnels has sent one. Then map the webhook data to the Cometly fields, add any filters and activate the event. The [Cometly webhooks guide](https://docs.cometly.com/integrations/webhooks.md) explains each of these steps.

## Send payment events

**1. Open Workspace Settings in ClickFunnels**

Log in to your ClickFunnels 2.0 account. In the left-hand menu, click **Workspace Settings**.

**2. Add a webhook endpoint**

Select **Webhooks** from the settings menu, then click **Add new endpoint**.

**3. Configure the endpoint**

Fill out the fields, but do not save yet:

* **Name**: a name that clearly identifies the event, for example "New Payment - Cometly".
* **URL**: leave empty for now. You get your Cometly webhook URL in the next step.
* **Event types**: select `order.completed` to trigger the webhook whenever a new order is created.
* **API Version**: choose **V2**.
* **Endpoint scopes** (optional): leave blank so all payments in your ClickFunnels 2.0 account are sent, regardless of the funnel or page.

**4. Create the event in Cometly and copy the webhook URL**

1. In Cometly, go to **Events Manager** and click **Create Event**.
2. Under **App / Integration**, select **Webhooks**.
3. Select the event name. We recommend the **Purchase** event for this setup. Click **Create**.
4. Under **Your webhook URL**, click **Copy**.

Leave this Cometly page open. You come back to it after the next step.

**5. Save the endpoint in ClickFunnels**

Paste the Cometly webhook URL into the **URL** field of your endpoint in ClickFunnels, then click **Create endpoint**.

**6. Finish the setup in Cometly**

Back in Cometly, click **Check for Data** and select a record once ClickFunnels has sent one. Then map the webhook data to the Cometly fields, add your filters and activate the event. The [Cometly webhooks guide](https://docs.cometly.com/integrations/webhooks.md) explains each of these steps.

> [!WARNING]
>
> On the filtering step, add a filter so that only orders marked as **paid** are processed.

## Check it worked

In **Events Manager**, each webhook event you activated shows a switch that is turned on in the **Status** column. Trigger a new event in ClickFunnels (for example, submit a form), then open the **Events Log** tab: the event appears there within 60 seconds, with **SUCCESS** in the **Details** column. Test data sent before you activated the event is not processed, so send a new one.

## Frequently asked questions

### Should I use ClickFunnels webhooks or the direct ClickFunnels integration?

We recommend the direct integration: you authenticate your ClickFunnels account and events are sent to Cometly automatically. Use webhooks if you prefer to send the event data manually, one endpoint per event. See [ClickFunnels](https://docs.cometly.com/integrations/platforms/clickfunnels.md) for the direct setup.

### How long does it take for ClickFunnels webhook events to show up in Cometly?

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

### Why are my ClickFunnels purchases paid with Stripe missing an ad source?

When Stripe takes the payment on your funnel, the Cometly pixel cannot capture the email address from the Stripe form, so Cometly cannot link the purchase to the visitor. Add a hidden **comet\_token** field to your ClickFunnels form and map it to your purchase event. See [Track ClickFunnels purchases paid with Stripe](https://docs.cometly.com/integrations/guides/clickfunnels-with-stripe.md).

## Next steps

* [Map fields, add filters and activate a webhook event](https://docs.cometly.com/integrations/webhooks.md)
* [Track ClickFunnels purchases paid with Stripe](https://docs.cometly.com/integrations/guides/clickfunnels-with-stripe.md)
* [Use the Events Log to check incoming events](https://docs.cometly.com/support/troubleshooting/general/event-log.md)
* [Connect the direct ClickFunnels integration](https://docs.cometly.com/integrations/platforms/clickfunnels.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.