Sales tracking (conversion pixel)

After a participant clicks the offer in the webinar room, they land on your sales page (outside Webivio). To bring that purchase back into funnel analytics, “Purchased product” automations, and the participants list, connect sales tracking (conversion pixel).

You have two options. One is enough. You can also use both at once if you keep the data consistent.

OptionWhen to use it
Scripts on your websiteYou can edit the HTML of the offer page and the “Thank you for your purchase” page
Webhook (e.g. WebToLearn)You sell in WebToLearn / a payment gateway and want a server-side signal after payment

Important: one email = one purchase in reports. The purchase email should be the same as the webinar registration email.

Where to find the codes in Webivio

  1. Open the automated webinar editor.
  2. Go to the Finish step.
  3. Under Important links, expand Want to track sales conversions in Webivio?.
  4. You will see:
    • Purchase tracking - script 1 (offer page)
    • Purchase tracking - script 2 (after purchase page)
    • Sales webhook (POST JSON) - e.g. WebToLearn
  5. Full in-panel guide: How to report post-webinar sales to Webivio.

Each webinar has its own token in the URL — copy the codes again for a new webinar. Do not share a URL that contains token publicly.


Option 1: Conversion pixel on your website (two scripts)

The simplest setup when you control the sales page HTML.

How it works

  1. The participant clicks the offer in Webivio and opens the sales page with participant-identifying parameters in the URL.
  2. Script 1 (offer page) stores those details in a cookie for about 48 hours.
  3. After purchase, the user reaches the thank-you page.
  4. Script 2 reads the cookie and sends the purchase to Webivio.

Both scripts must run on the same domain (so they share the cookie).

Step 1 — offer / sales page

  1. Copy script 1 from the Finish step.
  2. Paste it on the sales page — where users land after clicking the webinar offer.
  3. Preferably just before </body>.

Example shape (your URL will include your own webinarId and token):

<script src="https://webivio.com/api/public/post-sale-offer-tracker?webinarId=...&token=..." defer></script>

Step 2 — “Thank you for your purchase” page

  1. Copy script 2 from the Finish step.
  2. Paste it on the post-purchase thank-you page — also before </body>.
<script src="https://webivio.com/api/public/post-sale-thankyou-tracker?webinarId=...&token=..." defer></script>

Without script 2 on the thank-you page, the purchase will not reach Webivio.

Amount and currency (optional)

You can pass amount and currency in two ways:

  1. URL parameters on the thank-you page: wa (amount) and wy (currency), e.g. ?wa=497&wy=PLN.
  2. Attributes on script 2:
    • data-default-amount — amount,
    • data-default-currency — currency (e.g. PLN).

In the creator, script 2 may already include a default amount from the webinar’s first offer — you can change it.

Scripts checklist

  • Script 1 is on the offer page (entry from the webinar).
  • Script 2 is on the post-purchase page.
  • Both pages are on the same domain.
  • The room offer link points to the page with script 1.
  • After a test purchase, an entry appears under Participants → Sales data.

Option 2: Webhook (WebToLearn and other gateways)

Best for stores and payment systems. After a successful payment, the platform sends a POST JSON to Webivio — independent of the browser and AdBlock.

Step 1 — copy the webhook URL in Webivio

In the Finish step, copy:

Sales webhook (POST JSON) - e.g. WebToLearn

The URL looks like:

https://webivio.com/api/public/post-sale-webhook?webinarId=...&token=...

Do not shorten the URL or remove webinarId / token.

Step 2 — WebToLearn (recommended path)

  1. Sign in to WebToLearn.
  2. Open the product sold after the webinar, e.g.:
    • My Sales → Quick Sale (edit that quick sale), or
    • payment settings for the selected course / training.
  3. In the advanced / integrations section, find:
    Zapier.com integration after completed payment.
  4. Paste the full Webivio webhook URL there (it works directly — no Zapier account required).
  5. Save.

Use the after payment field, not “before payment”.

The same idea applies to other gateways: look for Webhook / Post-payment integration and paste the Webivio URL.

Step 3 — what the JSON must contain

Webivio reads common sales-platform fields (including WebToLearn):

FieldRequired?Purpose
email / buyer_email / customer_emailYes (to match a participant)Match to webinar registration
amount / price / totalNoAmount in reports
currencyNoCurrency (defaults to PLN when only amount is present)
order_id / transaction_idNoOrder ID, fewer duplicates

Optional (if present in the payload): participantId, accessCode, or wc — then matching does not have to use email.

Practical minimum: buyer email = webinar registration email.

HTTP method

  • Method: POST
  • Body: JSON
  • Endpoint: /api/public/post-sale-webhook?webinarId=...&token=...

After a successful save, Webivio may also emit outbound webinar.purchase.completed (if you have outbound webhooks configured).


Where you will see results

After a correct setup:

  • Webinar analytics — funnel and sales / conversion charts,
  • Participants → Sales data — recorded purchases,
  • Automations with the “Purchased product” trigger — start for people with a conversion.

Which option to choose?

  • Scripts — you can edit the offer and thank-you pages (simplest).
  • Webhook — WebToLearn / store / payment gateway and you want full server-side automation.
  • Both — possible, but keep data consistent (same email / order ID) to avoid confusing duplicates.

If something does not work

In most cases the issue is:

  • missing script 2 on the thank-you page (scripts option),
  • a different email at purchase than at webinar registration,
  • webhook pasted into the before payment field or an incomplete URL,
  • script 1 and 2 on different domains (cookie does not carry over),
  • a test without first visiting the page with script 1 (no session cookie).

See also