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

# GoHighLevel form tracking

> Set up GoHighLevel form tracking by adding the Cometly pixel to an embedded iframe form, so each lead is tied to the ad that produced it.

GoHighLevel form tracking means the Cometly pixel (the tracking script you install on your site) captures the name, email and phone fields a visitor fills in on your GoHighLevel form. A form embedded as an iframe (content loaded into your page from another source) needs the pixel added inside the form itself.

Those captured details are how Cometly links a lead to the visit that came before it. With the pixel in the form, you can see which ad or channel produced each GoHighLevel lead.

GoHighLevel has two types of forms:

1. **Native forms on landing pages**: built in the GoHighLevel web builder as part of your landing page.
2. **Embedded iframe forms**: built in the GoHighLevel form builder and embedded on a page as an iframe.

This page covers **embedded iframe forms**. If you use native forms on landing pages, the Cometly pixel tracks the form fields automatically and you do not need these steps.

## Before you start

Copy your Cometly pixel. In Cometly, go to [**Setup** > **Install the Cometly pixel**](https://app.cometly.com/space-setup?step=install-pixel), find **Install the pixel** and click **Copy Code**. See [Install the Cometly pixel](https://docs.cometly.com/getting-started/install-pixel.md) for the full walkthrough.

## Add the pixel to an embedded iframe form

**1. Add an HTML element to the form**

In GoHighLevel, edit the form you embed on your web pages. Find the **HTML** element in the menu on the left and drag it into the form.

![GoHighLevel form builder element list with an arrow on the Html element](https://mintcdn.com/cometly/4NU5YV9iL1PADmGE/images/integrations/forms/gohighlevel/01.webp?fit=max\&auto=format\&n=4NU5YV9iL1PADmGE\&q=85\&s=242b89f16cb6483f3b0967fd9ad6431e)

**2. Move the HTML element to the top of the form**

Place the custom HTML block above every other field.

![GoHighLevel form with the HTML block at the top and the Edit HTML button in the right panel](https://mintcdn.com/cometly/4NU5YV9iL1PADmGE/images/integrations/forms/gohighlevel/02.webp?fit=max\&auto=format\&n=4NU5YV9iL1PADmGE\&q=85\&s=ecde2e54768fbf9dc9a1d7cdcc924e30)

**3. Paste the Cometly pixel**

On the right side, open the HTML block, paste your Cometly pixel into it and save.

**4. Publish and test**

Publish your changes, then test form field capture as described below.

## Check it worked

[Use the Cometly Pixel Helper](https://docs.cometly.com/guides/tracking/pixel-helper.md) to check that the email address field is captured automatically as you fill in the form. The Pixel Helper is a Chrome extension that shows the details the pixel picks up as you type them.

## Send GoHighLevel form submissions to Cometly as events

An event is an action Cometly records, such as a lead or a sale. To send an event to Cometly for each form submission, use a Cometly webhook (a URL GoHighLevel sends the submission data to):

[Set up the GoHighLevel integration](https://docs.cometly.com/integrations/platforms/highlevel.md)

## Frequently asked questions

### Which GoHighLevel form fields does Cometly capture?

Cometly captures the form fields related to name, email and phone. Email matters most, because Cometly uses it to connect the person to the events your other tools send.

### Why isn't Cometly capturing my embedded GoHighLevel form?

To track what happens inside an iframe, the Cometly pixel has to be installed directly in the iframe's code, so the pixel on the surrounding page does not cover the form. Check that the **HTML** element with the pixel is in the form and that you published the change. See [Track forms inside iframes](https://docs.cometly.com/support/troubleshooting/form-tracking/track-iframes.md) for an advanced way to check it in your browser.

### Do I still need the Cometly pixel on my GoHighLevel funnel pages?

Yes. The pixel inside the form captures the form fields, and the pixel on your funnel pages records where each visitor comes from. Cometly only has a record of visits to pages that carry the pixel. See [GoHighLevel pixel installation](https://docs.cometly.com/integrations/pixel/gohighlevel.md).

## Next steps

* [Send HighLevel events with webhooks](https://docs.cometly.com/integrations/guides/highlevel-webhooks.md)
* [Install the Cometly pixel in GoHighLevel funnels](https://docs.cometly.com/integrations/pixel/gohighlevel.md)
* [Test form tracking from the Setup page](https://docs.cometly.com/guides/form-tracking/testing.md)
* [Form tracking for third-party embedded forms](https://docs.cometly.com/guides/form-tracking/third-party-forms.md)
* [How form tracking works](https://docs.cometly.com/getting-started/form-tracking.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.