Skip to main content
LeadDyno → MixpanelIntegration guide

Connecting LeadDyno to Mixpanel

LeadDyno targets smaller businesses running their first affiliate programme, where the most common outcome is paying commission on customers who would have bought anyway. 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 LeadDyno referral 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

LeadDyno in Mixpanel: affiliate as a property that stays put

Register the LeadDyno affiliate code as a super property and set-once profile property at landing, storing first touch, last touch and paid click ID separately to reveal affiliate links arriving after paid clicks. Send purchases server-side on the identified distinct_id with an order-based $insert_id and new-versus-existing status, refunds separately, and keep commission out.

Mixpanel is useful for LeadDyno when you want to see what affiliate-referred visitors do between landing and buying: which pages, which plan, how long. Register the affiliate code as a super property and set it on the profile when the visitor lands with the LeadDyno parameter, so every later event on that distinct_id carries it. Use a set-once operation for first-touch affiliate so a second affiliate link does not quietly rewrite it.

That precedence decision matters more here than in most pairs, because affiliate links can overwrite an earlier paid click. Store first touch, last touch and the paid click ID as separate properties, and Mixpanel will show how often an affiliate link arrives after a Google or Meta click on the same distinct_id. Those are the orders where you may be paying twice.

Send the purchase server-side with the distinct_id your app uses after identify, a $insert_id from the order ID, and properties for the affiliate and new-versus-existing status. Refunds go as a separate event referencing the order ID. Keep commission out of Mixpanel; product teams will start reading affiliate value from it, and it is not where commission gets reconciled.

LeadDyno → Mixpanel · what breaks

Why this join usually fails — LeadDyno → Mixpanel

  1. 01

    The distinct_id never reaches LeadDyno

    Affiliate links land on your store carrying parameters that may overwrite a paid identifier already stored.

  2. 02

    Paying commission on existing customers

    First affiliate programmes almost always leak this way. Without a new-customer condition on the commission rule, you are paying a percentage on repeat purchases you would have received for nothing.

  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.

LeadDyno → Mixpanel · the fix

What working looks like — LeadDyno → Mixpanel

  • The distinct_id on every referral

  • Conversions arriving in Mixpanel

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

  • Reconciled against the source

LeadDyno → Mixpanel · architecture

How LeadDyno and Mixpanel actually connect

  1. 1

    LeadDyno holds the truth

    New programmes frequently recruit existing customers as affiliates, who then refer themselves or their own repeat purchases. That is commission on revenue you already had.

  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 LeadDyno referral.

  4. 4

    The event source decides reliability

    Send orders net of commission, with new-versus-existing customer status 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.

LeadDyno → Mixpanel · normal or broken

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

Normal, not a fault

  • The distinct_id present on the referral

  • 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

    Affiliate links land on your store carrying parameters that may overwrite a paid identifier already stored.

  • Sent from the browser

    First affiliate programmes almost always leak this way. Without a new-customer condition on the commission rule, you are paying a percentage on repeat purchases you would have received for nothing.

  • 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

LeadDyno → Mixpanel · diagnose

Diagnostic order — LeadDyno → Mixpanel

  1. 01

    Count referrals carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Count affiliate-attributed orders from customers who already existed

    If the share is high, the fix is the commission rule rather than the tracking.

  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.

LeadDyno → Mixpanel · prove

How it gets proven — LeadDyno → Mixpanel

Source of truth

Orders flagged by affiliate, with the customer's prior relationship recorded.

  • The distinct_id confirmed present on a live referral.
  • Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
  • Affiliate orders reconciled net of commission, split by new versus existing customer.

LeadDyno → Mixpanel · free audit

What we check in the free audit

  • Count referrals carrying the distinct_id
  • Follow one real conversion end to end
  • Count affiliate-attributed orders from customers who already existed
  • 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 the customer's prior relationship recorded.

Get my free conversion tracking audit

Free30 minutesNo obligation

LeadDyno → Mixpanel · when not to buy

When you don't need this — LeadDyno → Mixpanel

  • Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry the distinct_id.
  • Programmes already restricted to new customers do not have this leak.
  • 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.

LeadDyno → Mixpanel · what we deliver

What gets built — LeadDyno → Mixpanel

  • Identifier capture into LeadDyno

    Set precedence explicitly and record whether the referred customer was already known to you.

  • Event source: your order record with affiliate attribution

    Send orders net of commission, with new-versus-existing customer status 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 reclaim commission.

Written guarantee

95%+ tracking accuracy

Measured against Orders flagged by affiliate, with the customer's prior relationship recorded.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

LeadDyno → Mixpanel questions, answered

Register the affiliate code as a super property on landing and set it once on the profile, then send purchases server-side with the same distinct_id and a $insert_id from the order ID.

Free · 30 min

Get LeadDyno and Mixpanel joined properly

Free30 minutesNo obligation