Connecting Recharge to PostHog
Recharge holds the subscription, which means it holds the only complete record of what a Shopify subscription store actually earns over time. 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 Recharge 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
Recharge in PostHog: renewals on the same person as the signup
Identify the browser's distinct_id to the Shopify customer on a page you control and store it on the Recharge subscription. Post renewals, skips, swaps and cancellations through PostHog's capture API with that distinct_id and a UUID derived from the Recharge charge or event ID. Keep subscription status and charge count as person properties.
PostHog answers one question for a Recharge store that ad platforms cannot: what did subscribers who stayed do differently on the site before they signed up? That needs the subscription and every later charge recorded on the same person as the pre-purchase pageviews, which means the browser's distinct_id has to be identified to the Shopify customer and stored on the Recharge subscription.
Post renewals, skips, swaps and cancellations through the capture API with that distinct_id and a UUID derived deterministically from the Recharge charge or event ID, so a redelivered webhook is dropped instead of doubled. Set subscription status and charge count as person properties, so a cohort like cancelled after charge two is a single filter. Renewals are server events with no session, so keep them out of web funnels that assume a pageview context.
The most common break: the anonymous browser ID is never merged with the identified customer, because Shopify's checkout runs outside your own scripts. The signup lands on an anonymous person, renewals land on an identified one, and the retention analysis has nothing joining them. Identify on a page you control, such as account creation or the storefront login, and verify with one test subscription that both appear on one person.
Recharge → PostHog · what breaks
Why this join usually fails — Recharge → PostHog
- 01
The distinct_id never reaches Recharge
The identifier has to live on the subscription rather than the order. Every renewal creates a new order, so an identifier stored only on the first one can never be tied to any renewal — and renewals are where most of the revenue is.
- 02
Renewals happen with no browser present
Charges run on a schedule with no customer there. Nothing that fires from a page can see them, and stores routinely report only acquisition and undercount total revenue by whatever their retention is worth.
- 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.
- 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.
Recharge → PostHog · the fix
What working looks like — Recharge → 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
Recharge → PostHog · architecture
How Recharge and PostHog actually connect
- 1
Recharge holds the truth
Every charge creates a Shopify order, so the two systems should agree. Recharge is authoritative for the recurring relationship; Shopify is authoritative for what the store banked.
- 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
The identifier is the bridge
The distinct_id, captured at the visit and carried into the Recharge subscription.
- 4
The event source decides reliability
Send acquisition from subscription created, once, valued at expected lifetime. Renewals fire from charge processed and belong in your reporting rather than automatically in your bidding.
- 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.
Recharge → PostHog · normal or broken
Working vs. broken, side by side — Recharge → PostHog
Normal, not a fault
The distinct_id present on the subscription
Sent from the Recharge subscription and charge webhooks
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
The identifier has to live on the subscription rather than the order. Every renewal creates a new order, so an identifier stored only on the first one can never be tied to any renewal — and renewals are where most of the revenue is.
Sent from the browser
Charges run on a schedule with no customer there. Nothing that fires from a page can see them, and stores routinely report only acquisition and undercount total revenue by whatever their retention is worth.
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
Recharge → PostHog · diagnose
Diagnostic order — Recharge → PostHog
- 01
Count subscriptions carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Check whether a subscription carries the identifier
Not the order. If it is on the order only, renewals can never be attributed no matter what you build downstream.
- 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.
- 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.
Recharge → PostHog · prove
How it gets proven — Recharge → PostHog
Source of truth
Recharge's subscription and charge records, cross-checked against the Shopify orders they create.
- 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.
- A renewal confirmed to land wherever the written policy says it should, and a cancellation confirmed to reverse.
Recharge → PostHog · free audit
What we check in the free audit
- Count subscriptions carrying the distinct_id
- Follow one real conversion end to end
- Check whether a subscription carries the identifier
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Recharge's subscription and charge records, cross-checked against the Shopify orders they create.
Free30 minutesNo obligation
Recharge → PostHog · when not to buy
When you don't need this — Recharge → PostHog
- Measure identifier coverage yourself first — pull your last hundred subscriptions and count how many carry the distinct_id.
- If you sell one-off products with a small subscription tail, the store's native integration may already be adequate. Measure the recurring share first.
- 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.
Recharge → PostHog · what we deliver
What gets built — Recharge → PostHog
Identifier capture into Recharge
Capture the click identifier on the storefront and write it to the Recharge subscription's metadata at creation, so it is available on every subsequent charge.
Event source: the Recharge subscription and charge webhooks
Send acquisition from subscription created, once, valued at expected lifetime. Renewals fire from charge processed and belong in your reporting rather than automatically in your bidding.
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
Recharge exposes cancellation, which should reverse the lifetime value you claimed at acquisition. Almost nobody wires this, so reported subscriber value only ever rises.
Written guarantee
95%+ tracking accuracy
Measured against Recharge's subscription and charge records, cross-checked against the Shopify orders they create.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Recharge → PostHog questions, answered
Server-side through the capture API, using the distinct_id stored on the subscription at signup and a stable UUID per charge. No browser is involved in a renewal.
The anonymous browser ID was never merged with the identified customer, usually because checkout runs outside your scripts. Identify the person on a page you control and merge the IDs there.
Almost always because the distinct_id never reached the Recharge subscription. The identifier has to live on the subscription rather than the order. Every renewal creates a new order, so an identifier stored only on the first one can never be tied to any renewal — and renewals are where most of the revenue is. Measure coverage before debugging the dispatch.
PostHog identifies by distinct_id with an alias call to merge anonymous and identified users. On a self-hosted instance you also control the ingestion endpoint, which means the identifier survives ad blockers that would kill a third-party pixel — one of the few genuine technical advantages available to a first-party setup.
The Recharge subscription and charge webhooks. Send acquisition from subscription created, once, valued at expected lifetime. Renewals fire from charge processed and belong in your reporting rather than automatically in your bidding.
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.
More on Recharge → PostHog
- Recharge → Google AdsConnecting Recharge to Google Ads
- Recharge → MetaConnecting Recharge to Meta Conversions API
- Recharge → GA4Connecting Recharge to GA4
RELATED GUIDES
Where Recharge → PostHog fits in the rest of your tracking
- Affirm → PostHogConnecting Affirm to PostHog
- Acima → PostHogConnecting Acima to PostHog
- Checkout.com → PostHogConnecting Checkout.com to PostHog
- Recharge → GA4Connecting Recharge to GA4
- Recharge → AmplitudeConnecting Recharge to Amplitude
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- Zuora → PostHogConnecting Zuora to PostHog
- Chargebee → PostHogConnecting Chargebee to PostHog
Free · 30 min
Get Recharge and PostHog joined properly
Free30 minutesNo obligation
