> ## 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 HighLevel events with webhooks

> Send GoHighLevel events to Cometly with webhooks, so each lead, opportunity and won deal is tied to the ad or source that produced it.

You can send GoHighLevel events to Cometly with webhooks. A webhook is a URL that one app sends data to in real time, and an event is an action Cometly tracks, such as a lead or a sale. A GoHighLevel (HighLevel) workflow sends each new contact, new opportunity or won deal to your Cometly webhook URL as it happens.

This matters because Cometly can only attribute the events it receives. Once your HighLevel leads and deals arrive in Cometly, you can see which ad or source produced each one, and compare cost per lead and return on ad spend by campaign.

> [!NOTE]
>
> The direct HighLevel integration is no longer available. On the **Integrations** page, the HighLevel card shows **No longer available** and the button **Use webhooks instead**. Webhooks, as described on this page, are how you send HighLevel events to Cometly.

## Before you start

* Install the Cometly pixel (the tracking script that records your visitors) in HighLevel. See [GoHighLevel pixel installation](https://docs.cometly.com/integrations/pixel/gohighlevel.md).
* If you use embedded HighLevel forms, set up [GoHighLevel form capture](https://docs.cometly.com/integrations/forms/gohighlevel.md).

This page covers three use cases:

1. [Leads](#send-lead-events): new contacts created in HighLevel.
2. [Opportunities created](#send-opportunity-created-events): a new opportunity is created in HighLevel.
3. [Opportunity won](#send-opportunity-won-events): an opportunity is moved to a specific stage in HighLevel.

For more detail on the Cometly side (mapping, formatting and filters), see the [Cometly webhooks guide](https://docs.cometly.com/integrations/webhooks.md).

## Send lead events

When a new lead is created in your GoHighLevel account, a GoHighLevel workflow sends it to Cometly as an event.

[Sending Leads to Cometly from GoHighLevel](https://www.loom.com/embed/a62e4849f5fb47e7bc089d4d0ca0a683)

**1. Create the event and webhook URL in Cometly**

1. In Cometly, go to **Events Manager** and click **Create Event**.
2. Under **App / Integration**, select **Webhooks**.
3. Choose an existing event (for example **Lead**) or choose **Create New Event** for your GoHighLevel leads. Click **Create**.
4. Under **Your webhook URL**, click **Copy**.

![Cometly Create Event dialog with Webhooks selected under App / Integration, outlined in orange, Lead selected under Events, and the Cancel and Create buttons.](https://mintcdn.com/cometly/4NU5YV9iL1PADmGE/images/integrations/guides/highlevel-webhooks/01.webp?fit=max\&auto=format\&n=4NU5YV9iL1PADmGE\&q=85\&s=54e50690d93ccc5558a658420417b0bb)

**2. Set up a workflow in GoHighLevel**

1. Log in to your GoHighLevel account and create a new workflow.
2. Choose **New Contact Created** as the trigger for the workflow.
3. Add an action, search for **Webhook**, and paste the webhook URL you copied from Cometly.
4. Save and publish the workflow.

**3. Test and check for data in Cometly**

1. Wait for a new lead to come in, or test the workflow manually with an existing contact in GoHighLevel.
2. In Cometly, click **Check for Data** and verify that the lead information is received. Select a record and click **Continue With Selected Record**.

**4. Map fields in Cometly**

1. Map **Email** and **Event Time** (both are required), plus **First Name** and **Last Name**.
2. Click **Add Field** to add more fields such as **Phone**. This improves event match quality when the data is sent back to ad platforms.
3. Click **Save & Continue**, then **Activate** on the filtering step.

![Cometly Configure Mapping step with Email, Event Time, First Name, Last Name and Phone under Cometly Fields mapped to the GoHighLevel payload fields under Data Fields, above the Add Field link and the Save & Continue button.](https://mintcdn.com/cometly/4NU5YV9iL1PADmGE/images/integrations/guides/highlevel-webhooks/02.webp?fit=max\&auto=format\&n=4NU5YV9iL1PADmGE\&q=85\&s=7cf7c05b69211734ed38d604b39e9bc3)

**5. Optional: filter leads**

If you only want to send specific leads (for example only qualified leads), set up conditions in the GoHighLevel workflow.

### Where to view your data

Leads appear in Cometly under the event you selected (for example "Lead") and in your reports. To monitor incoming webhook data, open **Events Manager** and the **Events Log** tab.

## Send opportunity created events

When a new opportunity is created in your GoHighLevel account, a GoHighLevel workflow sends it to Cometly as an event.

[Sending Opportunity Created to Cometly from GoHighLevel](https://www.loom.com/embed/3ab007131c1644beb09cfd38a52cb469)

**1. Create the event and webhook URL in Cometly**

1. In Cometly, go to **Events Manager** and click **Create Event**.
2. Under **App / Integration**, select **Webhooks**.
3. Choose **Create New Event** and name it (for example "Opportunity Created").
4. Leave **Include this event value in the "Gross Revenue" metric** unchecked unless the event reflects actual revenue.
5. Click **Create**, then under **Your webhook URL**, click **Copy**.

**2. Set up a workflow in GoHighLevel**

1. Log in to your GoHighLevel account and create a new workflow.
2. Name the workflow (for example "Opportunity Created - Send to Cometly").
3. Set the trigger to **Opportunity Created**.
4. Add an action, search for **Webhook**, and paste the webhook URL from Cometly.
5. Save and publish the workflow.

**3. Create an opportunity in GoHighLevel**

1. Go to the **Opportunities** section in GoHighLevel.
2. Add a new opportunity with details such as name, pipeline stage and value.
3. Save the opportunity to trigger the workflow.

**4. Check for data and map fields in Cometly**

1. In Cometly, click **Check for Data**, select the record and click **Continue With Selected Record**.
2. Map **Email**, **Event Time**, **First Name**, **Last Name** and **Phone**, and map the opportunity value to **Amount**.
3. Click **Save & Continue**.

**5. Optional: use filters**

On the filtering step, add filters to refine your data, for example by pipeline. Then click **Activate**.

### Where to view your data

Opportunities created in GoHighLevel appear in Cometly under the event you configured (for example "Opportunity Created"). The event is also available in your Cometly reports.

## Send opportunity won events

When an opportunity is moved to a specific pipeline stage in GoHighLevel (for example "Closed Won"), a GoHighLevel workflow sends it to Cometly as an event.

[Sending Opportunity Won events to Cometly from GoHighLevel](https://www.loom.com/embed/6d1acb51a8c04788ae8be33a79066ac9)

**1. Create the event and webhook URL in Cometly**

1. In Cometly, go to **Events Manager** and click **Create Event**.
2. Under **App / Integration**, select **Webhooks**.
3. Choose **Create New Event** and name it (for example "Opportunity Won").
4. Decide whether to check **Include this event value in the "Gross Revenue" metric** (for example, check it if you are not tracking purchases through Stripe).
5. Click **Create**, then under **Your webhook URL**, click **Copy**.

**2. Set up a workflow in GoHighLevel**

1. Log in to your GoHighLevel account and create a new workflow.
2. Name the workflow (for example "Opportunity Won - Send to Cometly").
3. Set the trigger to **Pipeline Stage Changed**.
4. Add a filter to specify the pipeline (for example Sales Pipeline) and the stage (for example Closed Won).
5. Add an action, search for **Webhook**, and paste the webhook URL from Cometly.
6. Save and publish the workflow.

**3. Move an opportunity to the closed stage**

In GoHighLevel, go to your **Opportunities** section and move an opportunity to the stage you chose in the workflow filter. This triggers the workflow.

**4. Check for data and map fields in Cometly**

1. In Cometly, click **Check for Data**, select the record and click **Continue With Selected Record**.
2. Map **Email**, **Event Time**, **First Name**, **Last Name** and **Phone**, and map the opportunity value to **Amount**.
3. Click **Save & Continue**.

**5. Optional: apply filters and activate**

On the filtering step, add filters to refine the data further, for example by pipeline or stage. Then click **Activate**.

### View and analyze your data

Your "Opportunity Won" events appear in Cometly under the event name you configured. Each event gets its own metrics in your reports:

* **Opportunity Won** (the number of events)
* **Opportunity Won Value**
* **Cost per Opportunity Won**
* **Opportunity Won ROAS**

You can view these metrics in the **Report Builder** or the **Ads Manager**.

## 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. Trigger the GoHighLevel workflow again (for example with a new contact or opportunity), 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 GoHighLevel event to show up in Cometly?

The event shows in the **Events Log** within 60 seconds of the workflow 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 GoHighLevel test event missing from my Cometly reports?

Test data sent before the webhook was activated is not processed and does not appear in your reports. After you click **Activate**, trigger the workflow again to send a new event.

### What if my GoHighLevel webhook data has no event time?

**Event Time** is required, but it does not have to come from GoHighLevel. When you map fields, choose **The time we receive the event** for **Event Time**, and Cometly uses the time the event arrives.

## Next steps

* [Map, format and filter webhook data in Cometly](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)
* [Send your events back to the ad platforms with the Conversion API](https://docs.cometly.com/guides/conversion-api/overview.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.