Skip to main content
Zuora → PostHogIntegration guide

Connecting Zuora to PostHog

Zuora handles enterprise subscription billing where contracts are amended rather than replaced, which means the thing you would call a conversion is frequently a change to something that already existed. PostHog can be self-hosted, which changes the calculus entirely: the data stays on infrastructure you control, and so does the responsibility for everything that goes wrong with it. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Zuora subscription before the conversion happens, because PostHog can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Zuora in PostHog: billing state on the company, not the user

Map the Zuora account to the organization ID your app uses as the PostHog group key, and update group properties for plan, seat count, status and renewal date. Send Zuora amendments as group events with old and new values, not under an admin's distinct_id. For consumer subscriptions, use the Zuora record ID as event UUID so retries do not duplicate.

PostHog's group analytics lets you attach events and properties to a company, which is where Zuora data belongs in a B2B product. Map the Zuora account to the organization ID your app already uses as the PostHog group key, then update group properties from Zuora: plan, seat count, subscription status and renewal date. Every product event from that company's users can then be broken down by what they pay for.

That answers the question this pair exists for: which product behavior precedes an upgrade or a cancellation. Send Zuora amendments as group events, such as seats added or plan downgraded, with the old and new values. A funnel from feature adoption to seats added, by plan, says more about expansion than any acquisition report.

Do not send billing events with a person's distinct_id unless a person actually did something. A renewal processed by Zuora on a schedule did not happen to whichever admin was last active, and attributing it to them corrupts user-level analysis. For consumer subscriptions where the account and user are the same person, the distinct_id is fine, but use the Zuora record ID as the event UUID so retries do not duplicate.

Zuora → PostHog · what breaks

Why this join usually fails — Zuora → PostHog

  1. 01

    The distinct_id never reaches Zuora

    Enterprise deals close in a room, not a browser, and the billing record is created by a finance team weeks after the sale.

  2. 02

    Expansion revenue credited to acquisition

    In enterprise subscription businesses expansion routinely exceeds new business. Pooling them makes every acquisition campaign look several times more effective than it is, and hides the fact that growth came from customer success.

  3. 03

    Self-hosting the analytics and the outage together

    The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.

  4. 04

    Nothing reconciles afterwards

    PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.

Zuora → PostHog · the fix

What working looks like — Zuora → PostHog

  • The distinct_id on every subscription

  • Conversions arriving in PostHog

    The event lands on the person profile and becomes available in insights, funnels and session replay.

  • Reconciled against the source

Zuora → PostHog · architecture

How Zuora and PostHog actually connect

  1. 1

    Zuora holds the truth

    An amendment that adds fifty seats to an existing contract is expansion revenue. It is often larger than a new logo and it belongs nowhere near an acquisition campaign's reporting.

  2. 2

    PostHog needs a click to match

    PostHog needs a distinct_id, an event name and its properties. Self-hosted instances additionally need the ingestion endpoint reachable and the project API key correct, which is a class of failure hosted tools do not have.

  3. 3

    The identifier is the bridge

    The distinct_id, captured at the visit and carried into the Zuora subscription.

  4. 4

    The event source decides reliability

    Send new-logo subscriptions at annual contract value. Send amendments, if at all, as a distinct expansion event.

  5. 5

    Deduplication at the destination

    PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.

Zuora → PostHog · normal or broken

Working vs. broken, side by side — Zuora → PostHog

Normal, not a fault

  • The distinct_id present on the subscription

  • Sent from the Zuora subscription and amendment records

  • Deduplicated correctly

    PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.

  • Reconciles with the source

Actually broken

  • The distinct_id missing on most records

    Enterprise deals close in a room, not a browser, and the billing record is created by a finance team weeks after the sale.

  • Sent from the browser

    In enterprise subscription businesses expansion routinely exceeds new business. Pooling them makes every acquisition campaign look several times more effective than it is, and hides the fact that growth came from customer success.

  • Counted twice, or not at all

    The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.

  • Nobody has reconciled it

Zuora → PostHog · diagnose

Diagnostic order — Zuora → PostHog

  1. 01

    Count subscriptions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Separate new logos from amendments before reporting anything

    One field on the subscription record. It usually halves the acquisition number and makes it true.

  4. 04

    Check ingestion health and disk before debugging any missing event

    On self-hosted instances the answer is infrastructure far more often than it is instrumentation.

  5. 05

    Read the match rate, not the success message

    PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.

Zuora → PostHog · prove

How it gets proven — Zuora → PostHog

Source of truth

Zuora subscriptions by effective date, with new business separated from amendments, upgrades and renewals.

  • The distinct_id confirmed present on a live subscription.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • New-logo annual contract value reconciled against imported conversions over a closed quarter.

Zuora → PostHog · free audit

What we check in the free audit

  • Count subscriptions carrying the distinct_id
  • Follow one real conversion end to end
  • Separate new logos from amendments before reporting anything
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Zuora subscriptions by effective date, with new business separated from amendments, upgrades and renewals.

Get my free conversion tracking audit

Free30 minutesNo obligation

Zuora → PostHog · when not to buy

When you don't need this — Zuora → PostHog

  • Measure identifier coverage yourself first — pull your last hundred subscriptions and count how many carry the distinct_id.
  • If almost all your growth is expansion, acquisition tracking answers a small question and the budget conversation is elsewhere.
  • If you have no reason to keep the data on your own infrastructure and no team to run it, the hosted product removes the only real downside of this one.

Zuora → PostHog · what we deliver

What gets built — Zuora → PostHog

  • Identifier capture into Zuora

    Store the identifier on the account in your CRM at first contact, and carry it into Zuora as an account field so the eventual contract can be traced.

  • Event source: the Zuora subscription and amendment records

    Send new-logo subscriptions at annual contract value. Send amendments, if at all, as a distinct expansion event.

  • Dispatch to PostHog

    The PostHog capture API, posted server-side from your backend to your own instance or to PostHog Cloud.

  • Reversals where they exist

    Cancellations and downgrade amendments reverse against the original value.

Written guarantee

95%+ tracking accuracy

Measured against Zuora subscriptions by effective date, with new business separated from amendments, upgrades and renewals.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Zuora → PostHog questions, answered

Use PostHog group analytics with your organization ID as the group key, and update plan, seats and status as group properties from Zuora.

Free · 30 min

Get Zuora and PostHog joined properly

Free30 minutesNo obligation