Skip to main content
When you finish, every iClosed lead, booked call, and closed deal arrives in Events, linked to the ad click that started it.

What iClosed sends

A contact without an email writes nothing. The next Contact updated carries the email and writes the stage. deal_won carries the closer’s deal value in value, currency (default USD), and deal_id (iclosed_ plus the outcome ID).
deal_won is contract value, not cash. No revenue report counts it. Connect a payment source such as Commas or Stripe for cash.

Before you start

Connect iClosed

1

Generate the webhook URL

Open Sources. On the iClosed card, select connect. Select Generate URL.
2

Copy the URL

Copy the webhook URL. Select Done.
3

Create the webhook in iClosed

In iClosed, open Settings → Developer → Webhooks. Select Create Webhook. Paste the URL.
4

Tick the triggers

Tick Contact created, Contact updated, Call booked, Call rescheduled, Call cancelled, and Outcome added. Save.
5

Install tracking

Add the tracking script to the <head> of every page that links to your scheduler.
6

Redirect after booking

In iClosed, open your event. Under Confirmation page, choose Redirect to your thank-you page. Turn on Forward parameters.
7

Add the thank-you snippet

On the thank-you page, paste the snippet below above the DATALYR tracking script.
You do not need Contact by status. The URL holds a secret. Treat it like a password.

The thank-you snippet

Copy it from the iClosed card. It removes the invitee’s personal fields from the address bar and calls identify() with the email.
Below the tracking script, it runs too late: the tracker records the email from the URL first.

How leads match to ad clicks

DATALYR checks these in order and stops at the first one that finds an ad click. UTMs and click IDs on the scheduler link carry through to contact and call webhooks. Outcomes carry no tracking data, so they match by email. With no match, visitor_id is iclosed_ plus the iClosed contact ID.

Set up conversion rules

Select the flag icon on the connected iClosed card to open the starter rules. Meta and TikTok optimize on a 7-day window. Most deals close later, so optimize them on call_booked or lead_qualified. Google Ads has no starter rules for iClosed. Create a rule by hand in Conversions and pick your conversion action. If a Commas or Stripe rule also sends Purchase to the same pixel, turn one off. Otherwise Meta counts the sale twice. iClosed’s own Meta events use custom names, so they do not collide with DATALYR’s. Optimize a campaign on one, not both.

Verify

  1. Open a page that links to your scheduler in a private window. Add ?utm_source=doctest to the URL.
  2. Book a test call with a test email address.
  3. Confirm the browser lands on your thank-you page with the personal fields removed from the address bar.
  4. Open Events. Confirm a call_booked row with source iclosed and utm_source doctest.
  5. Open Users. Find the test email. Confirm the pageview and call_booked sit on one user.
  6. After the call time, add a SALE outcome in iClosed. Confirm call_showed and deal_won arrive with the deal value.

When it does not work

Next