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

# iClosed integration

> Set up the iClosed Cometly integration to send booked calls to Cometly with the pixel and a Zap, so you can see which ads bring in appointments.

The iClosed Cometly integration tracks every appointment booked through your iClosed account. The Cometly pixel (the tracking script on your website) identifies the visitor who books, and a Zapier Zap sends each booking to Cometly as an event (an action Cometly tracks, such as a booked call or a purchase).

Once your bookings are in Cometly, each one can be connected back to the ad or channel that brought in the visitor. That lets you see which campaigns produce booked calls, not only clicks or form fills.

## Before you start

* Have your Cometly pixel snippet ready. You can copy it in Cometly from **Setup** > **Install the Cometly pixel** > **Install the pixel**. See [Install the pixel](https://docs.cometly.com/getting-started/install-pixel.md).
* Connect Cometly to Zapier. See the [Zapier integration](https://docs.cometly.com/integrations/zapier.md) guide.

## Step 1: Add the Cometly pixel to your pages

For tracking to work, the Cometly pixel must be on both your scheduling page and your thank-you page.

### On your scheduling page

Add the **Cometly pixel** to the `<head>` tag of the page where your iClosed booking form is embedded.

![Install the pixel section of Cometly Setup, showing the pixel script tag with a blurred uid and the Copy Code button below it](https://mintcdn.com/cometly/gJhojf-axy7BVk83/images/integrations/platforms/iclosed/01.webp?fit=max\&auto=format\&n=gJhojf-axy7BVk83\&q=85\&s=b13b711ac98ef8a275493020320c630f)

### On your thank-you page

Add the **Cometly pixel** to the `<head>` tag of the thank-you page as well.

## Step 2: Go to your iClosed events

![iClosed AI Scheduler with the Events tab and an event card highlighted](https://mintcdn.com/cometly/gJhojf-axy7BVk83/images/integrations/platforms/iclosed/02.webp?fit=max\&auto=format\&n=gJhojf-axy7BVk83\&q=85\&s=a2b7218dcfa61f16e7794171df92e69f)

1. Log in to your **iClosed** account.
2. Go to your **AI Scheduler** and open the **Events** section.
3. You may have one or several events. Follow the next steps for **each event** you want tracked in Cometly.

## Step 3: Set the primary question to "Email Address"

Cometly uses the email address to connect offline events (like appointments) to online ad interactions.

![iClosed event editor, Invitee Questions, with Email Address as the first primary question](https://mintcdn.com/cometly/gJhojf-axy7BVk83/images/integrations/platforms/iclosed/03.webp?fit=max\&auto=format\&n=gJhojf-axy7BVk83\&q=85\&s=527770d44185aa571655ab9ca7125564)

1. Click **Edit** on the event.
2. Make sure the **first primary question** is **Email Address**. By default, iClosed may use **Phone Number** as the primary question. Change this so **Email Address** is listed as the primary question.
3. Click **Save** to confirm your changes.

## Step 4: Configure the confirmation page

![iClosed Confirmation Page settings with redirect to an external URL and parameter forwarding enabled](https://mintcdn.com/cometly/gJhojf-axy7BVk83/images/integrations/platforms/iclosed/04.webp?fit=max\&auto=format\&n=gJhojf-axy7BVk83\&q=85\&s=da4dcfea558f59ee7e5b68ffde42b3f2)

1. In the event editor, scroll down to the **Confirmation Page** section.
2. Change the setting from the default iClosed confirmation page to an **External URL** (your custom thank-you page).
3. Enable **Forward Parameters to External URL**. This passes the invitee's email address and tracking parameters to your thank-you page so Cometly can capture them.

**Video of steps 2 to 4:**

[Configuring your iClosed account for Cometly tracking](https://www.loom.com/embed/edeade6ea35e4cfa80fe9e586ebdbb7b)

## Step 5: Send booked calls from iClosed to Cometly

1. In **Zapier**, make sure both your **iClosed** and **Cometly** accounts are connected.
2. Create a new Zap:
   * **Trigger:** iClosed, **Call Booked**
   * **Action:** Cometly, **Send Event**
3. Choose the event name in Cometly (for example, **Schedule**) and set the **Event Time** to **Now**.
4. Map the **contact's email** (required) and, optionally, the **full name** and **phone number**.
5. Test the Zap and publish it.

[Integrating iClosed with Cometly for Schedule events](https://www.loom.com/embed/500252c9c10143e4b6a02e955ce4a843)

Once this is done, every appointment booked in iClosed is sent to Cometly as a server event, so you can track it accurately.

## Step 6: Test your configuration

1. Go through your scheduling form as a test user.
2. Complete the booking using an email address you can access.
3. Verify that:
   * The thank-you page loads correctly with your Cometly pixel installed.
   * The email address is captured and appears on the **Schedule** event in your Cometly account.

## Check it worked

In Cometly, click **Events Manager** in the sidebar and open the **Events Log** tab, with **Source** set to **Server**. Your test booking appears there as a **Schedule** event (or the event you chose in your Zap), with the email address you booked with.

## Frequently asked questions

### Why do my iClosed bookings show up in Cometly without an ad source?

Cometly can only connect a booking to an ad when the Cometly pixel has seen the visitor and captured their email address. Check that the pixel is on both your scheduling page and your thank-you page, that **Email Address** is the first primary question, and that **Forward Parameters to External URL** is enabled. For other causes, see [Understanding No Source in reports](https://docs.cometly.com/support/troubleshooting/sources/no-source.md).

### Can I send iClosed bookings to Cometly as an event other than Schedule?

Yes. In the **Send Event** action of your Zap, you choose which Cometly event the booking is sent as. **Schedule** is the usual choice for a booked call, but you can select another pre-configured event or an event you created in Cometly.

### Do I need a separate Zap for each Cometly space?

Yes, if you track iClosed bookings in more than one space (a workspace in your Cometly account). Each Zapier connection uses an API token created in one space, so create a token and a connection for each space and use the matching connection in each Zap.

## Next steps

* [Use the Events Log to confirm iClosed bookings arrive](https://docs.cometly.com/support/troubleshooting/general/event-log.md)
* [Send conversions back to your ad platforms](https://docs.cometly.com/getting-started/send-conversions.md)
* [Learn how standard and custom events work](https://docs.cometly.com/guides/events/how-events-work.md)
* [Pass the email as a URL parameter to your thank-you page](https://docs.cometly.com/support/troubleshooting/form-tracking/pass-email-to-thank-you-page.md)
* [Send events from other apps with Zapier](https://docs.cometly.com/integrations/zapier.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.