Skip to main content
ShareASale → MixpanelIntegration guide

Connecting ShareASale to Mixpanel

ShareASale is a long-established last-click affiliate network, which means the same voucher-code interception problem as any last-click programme, at the scale of a very large publisher base. 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 ShareASale transaction 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

ShareASale in Mixpanel: see the voucher tab in the session

Record each landing in Mixpanel as its own event with source, ShareASale affiliate ID and publisher type, rather than overwriting super properties, then send the purchase server-side with the order ID as $insert_id, value net of commission and an affiliate-credited flag. Identify with your customer ID at checkout so voucher-site returns merge.

Mixpanel can show the interception pattern happening, step by step, in a way no report can. A visitor lands from a paid ad, adds to cart, leaves, then returns minutes later through a ShareASale voucher link and buys. In Mixpanel that is one distinct_id with two landing events, different utm values on each, and a purchase seconds after the second. Build a funnel from paid landing to affiliate landing to purchase, and the conversion time distribution tells you how much of the affiliate program is interception.

To make that visible, record each landing as its own event with the source, the ShareASale affiliate ID and publisher type as properties, rather than relying only on super properties, which overwrite. Send the purchase server-side with the order ID as $insert_id, value net of commission, and an affiliate-credited flag read from your order record.

The failure specific to this pair: a cashback extension or voucher site can bring the buyer back in a new browser context with no Mixpanel cookie, creating a new anonymous distinct_id just before purchase. If the buyer logs in at checkout, identify will merge the two; if they check out as a guest, the paid visit and the purchase stay apart. Use your customer ID at checkout so guest orders still identify.

ShareASale → Mixpanel · what breaks

Why this join usually fails — ShareASale → Mixpanel

  1. 01

    The distinct_id never reaches ShareASale

    The affiliate cookie is set on click and read at checkout, and a voucher-site click seconds before the order will overwrite whatever preceded it.

  2. 02

    Voucher publishers earning on sales your ads produced

    A customer arrives from a paid ad, opens a tab to find a code, clicks a voucher site's link and returns to buy. Under last-click the voucher site earns the commission on a sale your advertising created — and your paid reporting counts it too.

  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.

ShareASale → Mixpanel · the fix

What working looks like — ShareASale → Mixpanel

  • The distinct_id on every conversion

  • Conversions arriving in Mixpanel

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

  • Reconciled against the source

ShareASale → Mixpanel · architecture

How ShareASale and Mixpanel actually connect

  1. 1

    ShareASale holds the truth

    Publisher type is the whole analysis. Content publishers introduce customers; voucher and cashback publishers intercept them at the basket. Both are paid the same way and they are not the same thing.

  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 ShareASale transaction.

  4. 4

    The event source decides reliability

    Send orders net of commission, with affiliate-sourced orders marked and publisher type recorded.

  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.

ShareASale → Mixpanel · normal or broken

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

Normal, not a fault

  • The distinct_id present on the conversion

  • Sent from your order record with affiliate attribution

  • 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 affiliate cookie is set on click and read at checkout, and a voucher-site click seconds before the order will overwrite whatever preceded it.

  • Sent from the browser

    A customer arrives from a paid ad, opens a tab to find a code, clicks a voucher site's link and returns to buy. Under last-click the voucher site earns the commission on a sale your advertising created — and your paid reporting counts it too.

  • 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

ShareASale → Mixpanel · diagnose

Diagnostic order — ShareASale → Mixpanel

  1. 01

    Count conversions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Segment commissions by publisher type and time-from-click to order

    Clicks seconds before an order are interception. That segmentation is available and rarely run.

  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.

ShareASale → Mixpanel · prove

How it gets proven — ShareASale → Mixpanel

Source of truth

Orders flagged by affiliate, with commission recorded and the publisher type identified.

  • The distinct_id confirmed present on a live conversion.
  • Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
  • Orders reconciled net of commission against imported conversions, with the paid-media overlap measured.

ShareASale → Mixpanel · free audit

What we check in the free audit

  • Count conversions carrying the distinct_id
  • Follow one real conversion end to end
  • Segment commissions by publisher type and time-from-click to order
  • List every event name in the project and look for near-duplicates
  • Read the match rate, not the success message

Checked against

Orders flagged by affiliate, with commission recorded and the publisher type identified.

Get my free conversion tracking audit

Free30 minutesNo obligation

ShareASale → Mixpanel · when not to buy

When you don't need this — ShareASale → Mixpanel

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the distinct_id.
  • No affiliate programme means none of this applies. If you run one, the commission structure by publisher type will change your economics more than tracking accuracy will.
  • 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.

ShareASale → Mixpanel · what we deliver

What gets built — ShareASale → Mixpanel

  • Identifier capture into ShareASale

    Record the click timestamp alongside the affiliate identifier so late-journey interception is visible.

  • Event source: your order record with affiliate attribution

    Send orders net of commission, with affiliate-sourced orders marked and publisher type recorded.

  • Dispatch to Mixpanel

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

  • Reversals where they exist

    Refunds reverse and should reverse the commission.

Written guarantee

95%+ tracking accuracy

Measured against Orders flagged by affiliate, with commission recorded and the publisher type identified.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

ShareASale → Mixpanel questions, answered

Log each landing as a separate event with source and affiliate properties, then build a funnel from paid landing to affiliate landing to purchase and read the time between steps.

Free · 30 min

Get ShareASale and Mixpanel joined properly

Free30 minutesNo obligation