Connecting WooCommerce Subscriptions to PostHog
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. 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 WooCommerce 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
WooCommerce Subscriptions to PostHog: renewals for retention analysis
In PostHog, WooCommerce renewals form the retention curve. Identify with the WordPress user ID at checkout, then send subscription started, renewal paid, renewal failed and cancellation requested from the server, with status, plan and next payment date as person properties. Queue events asynchronously outside Action Scheduler jobs, with a deterministic UUID from the order ID.
PostHog is where WooCommerce renewal orders finally earn a place. In an ad platform they are noise; in PostHog they are the retention curve. Because Woo Subscriptions forces an account at checkout, call identify with the WordPress user ID on checkout or login, so the anonymous browsing distinct_id is merged into that user before the first order. Every later server event can then use the user ID directly, with no browser involved.
Send subscription started from the parent order with plan and first-period value, renewal paid from each completed renewal payment, renewal failed when the subscription goes on-hold, and cancellation requested when it moves to pending-cancel. Set current status, plan and next payment date as person properties. That gives retention and lifecycle views grouped by acquisition source, which is the question a subscription store most needs answered and the one ad platforms cannot answer.
Where it breaks: renewals are processed by Action Scheduler in batches, and a capture call made synchronously inside that job slows or fails renewal processing whenever PostHog is unreachable. Queue the events and send them asynchronously, with a deterministic UUID derived from the order ID so a retried batch does not duplicate renewals. If PostHog is self-hosted, confirm the ingestion endpoint is reachable from the WordPress server itself, not only from browsers.
WooCommerce Subscriptions → PostHog · what breaks
Why this join usually fails — WooCommerce Subscriptions → PostHog
- 01
The distinct_id never reaches WooCommerce Subscriptions
Renewal orders are created by a scheduled task with no browser, no referrer and no session.
- 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.
- 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.
WooCommerce Subscriptions → PostHog · the fix
What working looks like — WooCommerce Subscriptions → 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
WooCommerce Subscriptions → PostHog · architecture
How WooCommerce Subscriptions and PostHog actually connect
- 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
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 WooCommerce subscription.
- 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
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.
WooCommerce Subscriptions → PostHog · normal or broken
Working vs. broken, side by side — WooCommerce Subscriptions → PostHog
Normal, not a fault
The distinct_id present on the subscription
Sent from the WooCommerce subscription record
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
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
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
WooCommerce Subscriptions → PostHog · diagnose
Diagnostic order — WooCommerce Subscriptions → PostHog
- 01
Count subscriptions carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Compare order count against new subscription count
If orders substantially exceed new subscriptions, renewals are in your conversion feed.
- 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.
WooCommerce Subscriptions → PostHog · prove
How it gets proven — WooCommerce Subscriptions → PostHog
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 ingestion lag checked over the same window.
- New subscriptions reconciled against imported conversions, with renewal orders demonstrably excluded.
WooCommerce Subscriptions → PostHog · 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
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
New subscriptions by start date, held apart from the renewal orders they generate.
Free30 minutesNo obligation
WooCommerce Subscriptions → PostHog · when not to buy
When you don't need this — WooCommerce Subscriptions → PostHog
- 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 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.
WooCommerce Subscriptions → PostHog · what we deliver
What gets built — WooCommerce Subscriptions → PostHog
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 PostHog
The PostHog capture API, posted server-side from your backend to your own instance or to PostHog Cloud.
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.
From $400 · See packages
FAQ
WooCommerce Subscriptions → PostHog questions, answered
Call identify with the WordPress user ID during checkout or login, then send server events with that ID as the distinct_id. Woo Subscriptions requires an account, so every subscriber has one.
Yes, as their own event. Retention analysis by acquisition cohort is the main reason to send this source to PostHog.
Almost always because the distinct_id never reached the WooCommerce subscription. Renewal orders are created by a scheduled task with no browser, no referrer and no session. 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 WooCommerce subscription record. Send the initial order of a new subscription at a defensible subscription value; renewals carry no acquisition value.
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 WooCommerce Subscriptions → PostHog
- WooCommerce → PostHogConnecting WooCommerce to PostHog
- WooCommerce Subscriptions → Google AdsConnecting WooCommerce Subscriptions to Google Ads
- WooCommerce Subscriptions → MetaConnecting WooCommerce Subscriptions to Meta Conversions API
RELATED GUIDES
Where WooCommerce Subscriptions → PostHog fits in the rest of your tracking
- Gumroad → PostHogConnecting Gumroad to PostHog
- Checkout Extensibility → PostHogConnecting Shopify Checkout Extensibility to PostHog
- Wix → PostHogConnecting Wix Stores to PostHog
- WooCommerce Subscriptions → MatomoConnecting WooCommerce Subscriptions to Matomo
- WooCommerce Subscriptions → MixpanelConnecting WooCommerce Subscriptions to Mixpanel
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- Medusa → PostHogConnecting Medusa to PostHog
- Ecwid → PostHogConnecting Ecwid to PostHog
Free · 30 min
Get WooCommerce Subscriptions and PostHog joined properly
Free30 minutesNo obligation
