Skip to main content
Afterpay → MixpanelIntegration guide

Connecting Afterpay to Mixpanel

Afterpay is pay-in-four buy-now-pay-later, which means the shopper is approved elsewhere and the merchant is paid up front by the provider. Mixpanel is a product analytics tool, not an ad platform, which means it has no attribution model of its own and will faithfully report whatever event schema you give it — including a bad one. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Afterpay order before the conversion happens, because Mixpanel can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Afterpay orders in Mixpanel: one purchase per order, right user

Write the Mixpanel distinct_id onto the cart before the Afterpay redirect, then send one purchase event from the order webhook with payment_method as a property, the store order ID as $insert_id and the full order amount. Without the stored anonymous distinct_id, guest Afterpay purchases land on new profiles and the funnel shows a false cliff.

Mixpanel's job for an Afterpay store is product questions: does offering pay-in-four raise checkout completion, and do BNPL buyers come back? Neither works if purchases come from the browser, because the shoppers who finish approval on Afterpay and close the tab never trigger the client-side event. Send the purchase from the order webhook and write the Mixpanel distinct_id onto the cart, as a cart attribute or order note, before the redirect so the server knows whose profile to use.

Pick one event name for purchases and add payment_method as a property, rather than a separate Afterpay Purchase event someone will invent later. Use the store order ID as the $insert_id, so a webhook retry does not create a second event. Value is the full order amount; the instalments are between the shopper and Afterpay and should not appear in Mixpanel at all.

Where this pair usually breaks is the guest checkout. The shopper browses anonymously, pays as a guest through Afterpay, and the server event arrives keyed to an email that Mixpanel has never seen. Without the stored anonymous distinct_id on the order, the purchase lands on a new profile, and your checkout funnel shows the Afterpay step as a cliff. Fix the identity handoff first, then read the BNPL conversion lift.

Afterpay → Mixpanel · what breaks

Why this join usually fails — Afterpay → Mixpanel

  1. 01

    The distinct_id never reaches Afterpay

    The shopper is redirected to Afterpay for approval and a meaningful share never return to the confirmation page. The order exists and no pixel fired.

  2. 02

    The approval redirect that ends the session

    Approval happens on Afterpay's side. The customer is committed, the merchant is paid, and the confirmation page is optional from the shopper's point of view.

  3. 03

    One event schema, two teams, no agreement

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  4. 04

    Nothing reconciles afterwards

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

Afterpay → Mixpanel · the fix

What working looks like — Afterpay → Mixpanel

  • The distinct_id on every order

  • Conversions arriving in Mixpanel

    The event lands on the user profile and becomes available in funnels, retention and cohort analysis.

  • Reconciled against the source

Afterpay → Mixpanel · architecture

How Afterpay and Mixpanel actually connect

  1. 1

    Afterpay holds the truth

    Afterpay pays the merchant in full and collects instalments from the shopper itself, so your revenue arrives at once even though the customer pays over time. The store's order record is the money event, not the instalment schedule.

  2. 2

    Mixpanel needs a click to match

    Mixpanel needs a distinct_id, an event name and its properties. Events without a distinct_id are rejected; events with the wrong one land on a stranger's profile.

  3. 3

    The identifier is the bridge

    The distinct_id, captured at the visit and carried into the Afterpay order.

  4. 4

    The event source decides reliability

    Fire from the order record, which exists whether or not the browser came back, and tag the payment method so BNPL performance is visible.

  5. 5

    Deduplication at the destination

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

Afterpay → Mixpanel · normal or broken

Working vs. broken, side by side — Afterpay → Mixpanel

Normal, not a fault

  • The distinct_id present on the order

  • Sent from your store's order webhook

  • Deduplicated correctly

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

  • Reconciles with the source

Actually broken

  • The distinct_id missing on most records

    The shopper is redirected to Afterpay for approval and a meaningful share never return to the confirmation page. The order exists and no pixel fired.

  • Sent from the browser

    Approval happens on Afterpay's side. The customer is committed, the merchant is paid, and the confirmation page is optional from the shopper's point of view.

  • Counted twice, or not at all

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  • Nobody has reconciled it

Afterpay → Mixpanel · diagnose

Diagnostic order — Afterpay → Mixpanel

  1. 01

    Count orders carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Count Afterpay checkouts started against confirmation-page loads

    The gap is the share of BNPL revenue a browser-side setup cannot see, and it is usually larger than merchants expect.

  4. 04

    List every event name in the project and look for near-duplicates

    Case differences, tense differences and synonyms are the usual finding, and they are cheap to fix before a year of data is built on them.

  5. 05

    Read the match rate, not the success message

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

Afterpay → Mixpanel · prove

How it gets proven — Afterpay → Mixpanel

Source of truth

Your store's orders paid with Afterpay, cross-checked against Afterpay's settlement.

  • The distinct_id confirmed present on a live order.
  • Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
  • An Afterpay order abandoned at the return step, confirmed to still report.

Afterpay → Mixpanel · free audit

What we check in the free audit

  • Count orders carrying the distinct_id
  • Follow one real conversion end to end
  • Count Afterpay checkouts started against confirmation-page loads
  • List every event name in the project and look for near-duplicates
  • Read the match rate, not the success message

Checked against

Your store's orders paid with Afterpay, cross-checked against Afterpay's settlement.

Get my free conversion tracking audit

Free30 minutesNo obligation

Afterpay → Mixpanel · when not to buy

When you don't need this — Afterpay → Mixpanel

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
  • If BNPL is a very small share of your orders, measure that share before commissioning anything.
  • If you already have the same events in a warehouse and nobody is running product analysis on them, adding Mixpanel adds a second source of truth rather than an answer.

Afterpay → Mixpanel · what we deliver

What gets built — Afterpay → Mixpanel

  • Identifier capture into Afterpay

    Capture the identifier before checkout and store it on the order in your own system, so the conversion does not depend on the shopper completing the return journey.

  • Event source: your store's order webhook

    Fire from the order record, which exists whether or not the browser came back, and tag the payment method so BNPL performance is visible.

  • Dispatch to Mixpanel

    The Mixpanel ingestion API, posted server-side from your backend with the distinct_id and event properties.

  • Reversals where they exist

    Returns on BNPL orders run higher than card in many stores, so the reversal matters more here than elsewhere.

Written guarantee

95%+ tracking accuracy

Measured against Your store's orders paid with Afterpay, cross-checked against Afterpay's settlement.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Afterpay → Mixpanel questions, answered

Save the browser's distinct_id on the cart before the Afterpay redirect, then send the purchase server-side from the order webhook using that stored ID.

Free · 30 min

Get Afterpay and Mixpanel joined properly

Free30 minutesNo obligation