Skip to main content
WooCommerce Subscriptions → MixpanelIntegration guide

Connecting WooCommerce Subscriptions to Mixpanel

WooCommerce Subscriptions turns a store into a recurring business, and every renewal creates a real WooCommerce order — which is exactly why renewals get counted as sales. 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 WooCommerce subscription 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

WooCommerce Subscriptions in Mixpanel: trial, paid, renew, churn

Send Trial Started, First Payment, Renewal and Cancelled to Mixpanel from WooCommerce Subscriptions hooks on the server, using the WordPress user ID as distinct_id after identify at checkout. Set $insert_id from the order ID or subscription ID plus status, keep event names identical each cycle, and record failed renewal payments separately from cancellations.

For a subscription store, Mixpanel's job is the lifecycle funnel: Trial Started, First Payment, Renewal, Cancelled. Each comes from a different WooCommerce Subscriptions moment, so send them from the plugin's hooks on the server rather than from the thank-you page, which only ever sees the first one. Renewals happen with no browser at all.

Subscriptions force an account, so the WordPress user ID is your distinct_id. Call identify with it in the browser at checkout and send every server event under it, and the pre-purchase sessions carrying UTMs merge into the subscriber. Check whether your project is on simplified ID merge; on the original system you also need an alias at account creation. Set $insert_id to the order ID for payments and to subscription ID plus status for status changes, so a re-fired hook does not duplicate.

Mixpanel's retention report reads renewals well if the event name stays identical every cycle. Put plan, billing interval and renewal count in properties rather than the event name, and record failed renewal payments separately from cancellations; involuntary churn from expired cards is a different problem from a customer choosing to leave, and it is the cheaper one to fix.

WooCommerce Subscriptions → Mixpanel · what breaks

Why this join usually fails — WooCommerce Subscriptions → Mixpanel

  1. 01

    The distinct_id never reaches WooCommerce Subscriptions

    Renewal orders are created by a scheduled task with no browser, no referrer and no session.

  2. 02

    Renewal orders indistinguishable from new sales

    This is the single most common WooCommerce Subscriptions error. Renewals are real orders in the same table, so a default order-based integration counts every one, and the conversion count inflates by exactly your retention rate.

  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.

WooCommerce Subscriptions → Mixpanel · the fix

What working looks like — WooCommerce Subscriptions → Mixpanel

  • The distinct_id on every subscription

  • Conversions arriving in Mixpanel

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

  • Reconciled against the source

WooCommerce Subscriptions → Mixpanel · architecture

How WooCommerce Subscriptions and Mixpanel actually connect

  1. 1

    WooCommerce Subscriptions holds the truth

    A renewal is a full order in the orders table, indistinguishable from a new purchase unless you check the parent subscription. That is the trap.

  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 WooCommerce subscription.

  4. 4

    The event source decides reliability

    Send the initial order of a new subscription at a defensible subscription value; renewals carry no acquisition value.

  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.

WooCommerce Subscriptions → Mixpanel · normal or broken

Working vs. broken, side by side — WooCommerce Subscriptions → Mixpanel

Normal, not a fault

  • The distinct_id present on the subscription

  • Sent from the WooCommerce subscription record

  • 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

    Renewal orders are created by a scheduled task with no browser, no referrer and no session.

  • Sent from the browser

    This is the single most common WooCommerce Subscriptions error. Renewals are real orders in the same table, so a default order-based integration counts every one, and the conversion count inflates by exactly your retention rate.

  • 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

WooCommerce Subscriptions → Mixpanel · diagnose

Diagnostic order — WooCommerce Subscriptions → Mixpanel

  1. 01

    Count subscriptions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare order count against new subscription count

    If orders substantially exceed new subscriptions, renewals are in your conversion feed.

  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.

WooCommerce Subscriptions → Mixpanel · prove

How it gets proven — WooCommerce Subscriptions → Mixpanel

Source of truth

New subscriptions by start date, held apart from the renewal orders they generate.

  • The distinct_id confirmed present on a live subscription.
  • Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
  • New subscriptions reconciled against imported conversions, with renewal orders demonstrably excluded.

WooCommerce Subscriptions → Mixpanel · free audit

What we check in the free audit

  • Count subscriptions carrying the distinct_id
  • Follow one real conversion end to end
  • Compare order count against new subscription count
  • List every event name in the project and look for near-duplicates
  • Read the match rate, not the success message

Checked against

New subscriptions by start date, held apart from the renewal orders they generate.

Get my free conversion tracking audit

Free30 minutesNo obligation

WooCommerce Subscriptions → Mixpanel · when not to buy

When you don't need this — WooCommerce Subscriptions → Mixpanel

  • Measure identifier coverage yourself first — pull your last hundred subscriptions and count how many carry the distinct_id.
  • Stores selling only one-time products do not generate renewal orders and are unaffected.
  • 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.

WooCommerce Subscriptions → Mixpanel · what we deliver

What gets built — WooCommerce Subscriptions → Mixpanel

  • Identifier capture into WooCommerce Subscriptions

    Capture on the original purchase and store on the subscription, then filter renewals out of the conversion feed by parent subscription.

  • Event source: the WooCommerce subscription record

    Send the initial order of a new subscription at a defensible subscription value; renewals carry no acquisition value.

  • Dispatch to Mixpanel

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

  • Reversals where they exist

    Cancellations inside the first period reverse.

Written guarantee

95%+ tracking accuracy

Measured against New subscriptions by start date, held apart from the renewal orders they generate.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

WooCommerce Subscriptions → Mixpanel questions, answered

Send a Renewal event from the server when the renewal payment completes, under the subscriber's WordPress user ID, with $insert_id set to the order ID.

Free · 30 min

Get WooCommerce Subscriptions and Mixpanel joined properly

Free30 minutesNo obligation