Skip to main content
When you finish, a Zap sends each sales stage from your booking tool or CRM to DATALYR, matched by email to the visit. Use this when your tool has no DATALYR source. For HubSpot, see HubSpot.

What Zapier sends

You choose the trigger. DATALYR receives the event name in the body. Only deal_won carries a value: the deal amount. Its cash_role is non_cash_fact, so no revenue report counts it. Cash comes from a payment source such as Stripe or Commas. Each event_id is stable per record and stage. A Zap retry is a duplicate, not a second conversion. See Duplicates.

Before you start

The request

Replace each placeholder such as {{email}} with the matching field from your trigger. Keep source, currency, lead_source and cash_role as written.
The Zapier card in Sources has the same bodies.
Keep the write key in Zapier only. Anyone holding it can write events into your workspace.

Build the Zap

Build one Zap per stage.
1

Add the trigger

Pick the app and the trigger for the stage, such as a new booking or a deal moved to won.
2

Find the email

If the trigger has no email field, add a search step that finds the contact.
3

Add the request

Add Webhooks by Zapier with the Custom Request event. Set Method to POST.
4

Set the URL and headers

Paste the URL. Add the X-API-Key and Content-Type headers.
5

Paste the body

Paste the stage’s body into Data. Map each placeholder to a field from an earlier step.
6

Test the step

Run the step test. Confirm the response contains "success": true.
The POST event works too. Set Payload Type to json and Unflatten to yes. Name the nested keys properties__email, properties__value, and so on.
Map a real record ID into each event_id. A fixed text value makes every later request a duplicate. A refused request returns 400 with the field. Zapier marks the step failed.

How leads match to ad clicks

Zapier events match by email alone. user_id and properties.email carry it. An event joins an ad click only when DATALYR already knows that email from a tracked visit. That happens through an identify() call on your form, an iClosed or Calendly booking, or a payment source. See Identity.

Set up conversion rules

In Sources, select Set up conversions on the Zapier card. Setup asks what a booked call and a qualified lead are worth, then creates: Meta and TikTok optimize on a 7-day window. Send them the stage that happens within a week of the click. Setup sends one purchase per sale to each pixel or conversion action. It asks when two sources compete: Setup pauses the other side’s rules there and lists them first. It deletes none.

Verify

  1. Open your landing page in a private window with ?utm_source=doctest.
  2. Submit your form or book a call with a test email address.
  3. Trigger the Zap for that record.
  4. Open Events. Confirm the stage’s row with source zapier.
  5. Open Users. Find the test email. Confirm the pageview and the stage sit on one user.

When it does not work

Next

  • HubSpot: the HubSpot triggers and the workflow route.
  • Ingest API: every field and status code on /track.
  • Lead generation: choose the stage to optimize toward.