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.
Events arrive with source api.
Before you start
The request
Replace each placeholder such as
{{email}} with the matching field from your trigger. Keep currency and cash_role as written.
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.event_id. A fixed text value makes every later request a duplicate.
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
Zapier has no starter rules. Create each rule in Conversions with manage rules.
Meta and TikTok optimize on a 7-day window. Send them the stage that happens within a week of the click.
Verify
- Open your landing page in a private window with
?utm_source=doctest. - Submit your form or book a call with a test email address.
- Trigger the Zap for that record.
- Open Events. Confirm the stage’s row with source
api. - Open Users. Find the test email. Confirm the
pageviewand 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.