Conversion tracking
Report purchases, bookings and sign-ups from your site or backend so Webinaric can credit them to the webinar session that led to them.
On this page
A webinar ends with a click to your site. What happens next, a purchase, a booked demo or a trial sign-up, is a conversion. Report it to Webinaric and it is credited to the webinar session that led to it. It then shows up on the webinar's Funnel tab, on the lead and in your webhooks.
You can report conversions in two ways. Use both if you like:
- The conversion snippet on your website, for conversions that happen in the browser.
- The conversion webhook, an HTTP endpoint for your backend, CRM or Zapier.
You find both, with your workspace's key and secret filled in, under Settings → Tracking.
How a conversion is matched
Each conversion needs an email address, a visitor ID, or both:
- Visitor ID: tracked links from the webinar add
wbr_vidto the destination URL. The snippet on your site saves it and sends it with the conversion. - Email: matched against the emails attendees gave in the lobby or the chat.
Webinaric credits the conversion to the visitor's latest webinar session in the 30 days before the conversion. If nothing matches, the conversion is still stored and shows as Not attributed on the lead.
Add the snippet to your site
Install it on every page
Copy the snippet from Settings → Tracking → Conversion snippet into every page of your site, for example in your site's header template. It looks like this, with your own domain and key:
HTML<script>window.webinaric=window.webinaric||function(){(webinaric.q=webinaric.q||[]).push(arguments)};</script><script async src="https://webinaric.com/t.js" data-key="wk_…"></script>
When a visitor arrives with
wbr_vidin the URL, the snippet saves it in your site's storage for 90 days. That's why it must be on the page your webinar links point to, not only on the thank-you page.Report the conversion on the thank-you page
Call
webinaric("convert", …)where the conversion happens:JavaScriptwebinaric("convert", { value: 99, currency: "EUR", orderId: "1234", email: "jane@example.com" });All fields are optional, but the call is ignored when the snippet has no visitor ID and you pass no
email.
| Field | Meaning |
|---|---|
value | The conversion's value, as a number |
currency | Three-letter currency code, such as EUR or USD |
orderId | Your order or booking ID. A second conversion with the same ID is ignored, so a reloaded thank-you page doesn't count twice. |
email | The buyer's email, for matching when they arrive without a visitor ID |
Report conversions from your backend
Send a POST to https://webinaric.com/api/v1/conversions. Authenticate with the workspace's secret, shown under Settings → Tracking → Conversion webhook:
$ curl -X POST https://webinaric.com/api/v1/conversions \ -H "Authorization: Bearer whsec_…" \ -H "Content-Type: application/json" \ -d '{"email":"jane@example.com","value":99,"currency":"EUR","externalId":"order-1234"}'
| Field | Type | Notes |
|---|---|---|
email | string | Required unless you send visitorId |
visitorId | string | The wbr_vid value, if you captured it |
value | number | 0 or more |
currency | string | Three-letter code |
externalId | string | Your ID for the conversion, up to 200 characters. Repeats are ignored. |
occurredAt | string | When it happened, as an ISO 8601 date and time. Defaults to now. The 30-day window counts back from this time. |
Responses:
201with{"ok":true,"id":"…","attributed":true}for a new conversion.attributedisfalsewhen no session matched.200with{"ok":true,"duplicate":true}when theexternalIdwas already recorded. Retrying is safe.400for invalid JSON or fields,401for a wrong secret,413for bodies over 10 KB.
Regenerate secret creates a new secret. The old one stops working immediately, so update every integration that sends conversions.
Where conversions show
- Funnel tab: the Converted step, revenue from attributed conversions, and Converted and Revenue per campaign and per offer. See How webinars fit your funnel.
- Lead detail → Attribution & conversions: each conversion with its date, webinar, source (
snippetorwebhook), order ID and value. - Webhooks: a
conversion.recordedevent with the attributed webinar and session, if any. See Webhooks.
Revenue is added up without currency conversion. Report all conversions in one currency to keep the totals meaningful.