Connecting nopCommerce to PostHog
nopCommerce is a .NET platform usually run by teams who deploy their own builds, which makes tracking a code change rather than a plugin install — and code changes ship on the release cycle, not on the marketing calendar. 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 nopCommerce order 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
nopCommerce checkout funnels in PostHog, closed server-side
Save PostHog's distinct_id as a customer generic attribute, call identify with the nopCommerce customer ID on login, and send paid orders from the order-paid consumer to the capture API with a UUID from the order GUID and revenue with currency. Emit explicit checkout-step events rather than URL-based funnels.
PostHog shows what happened before a nopCommerce order: product views, cart changes, checkout steps. To connect that to orders, save the PostHog distinct_id as a generic attribute on the customer during the session, and on login or registration call identify with the nopCommerce customer ID so guest browsing merges into the registered person.
Send the paid order from the order-paid consumer to PostHog's capture API with that distinct_id, a UUID taken from the order GUID that nopCommerce assigns to every order, and revenue with its currency. The server event survives payment gateways that never return to the confirmation page, which is exactly where a browser-only funnel loses its last step. Set the customer's paid order count and first-order date as person properties at the same time, so repeat-buyer cohorts can be built without querying the store database.
nopCommerce offers one-page and multi-step checkout, and they produce different URL patterns, so a funnel built on pageview URLs breaks when someone flips the setting in admin. Emit explicit checkout-step events from the theme instead. If PostHog is self-hosted, put it on a subdomain of the store so ingestion requests are first-party.
nopCommerce → PostHog · what breaks
Why this join usually fails — nopCommerce → PostHog
- 01
The distinct_id never reaches nopCommerce
Custom builds mean the checkout flow differs per installation, and a redeploy can remove tracking that was added by hand.
- 02
Tracking that disappears on the next release
Anything bolted onto a self-hosted build by hand will eventually be lost in a merge. Putting the identifier in the schema makes it a first-class field that a redeploy carries rather than erases.
- 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.
nopCommerce → PostHog · the fix
What working looks like — nopCommerce → PostHog
The distinct_id on every order
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
nopCommerce → PostHog · architecture
How nopCommerce and PostHog actually connect
- 1
nopCommerce holds the truth
Because the platform is self-hosted, the order table is directly queryable and there is no reason to infer revenue from a confirmation page.
- 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 nopCommerce order.
- 4
The event source decides reliability
Send orders with payment status paid, at the order subtotal.
- 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.
nopCommerce → PostHog · normal or broken
Working vs. broken, side by side — nopCommerce → PostHog
Normal, not a fault
The distinct_id present on the order
Sent from the nopCommerce order table
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
Custom builds mean the checkout flow differs per installation, and a redeploy can remove tracking that was added by hand.
Sent from the browser
Anything bolted onto a self-hosted build by hand will eventually be lost in a merge. Putting the identifier in the schema makes it a first-class field that a redeploy carries rather than erases.
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
nopCommerce → PostHog · diagnose
Diagnostic order — nopCommerce → PostHog
- 01
Count orders carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Check whether identifier capture survives a deploy
Test it deliberately on a staging release rather than discovering it three weeks after the fact.
- 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.
nopCommerce → PostHog · prove
How it gets proven — nopCommerce → PostHog
Source of truth
nopCommerce orders by payment status, from the database rather than from a page.
- The distinct_id confirmed present on a live order.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- Paid orders reconciled from the database against imported conversions for a closed week.
nopCommerce → PostHog · free audit
What we check in the free audit
- Count orders carrying the distinct_id
- Follow one real conversion end to end
- Check whether identifier capture survives a deploy
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
nopCommerce orders by payment status, from the database rather than from a page.
Free30 minutesNo obligation
nopCommerce → PostHog · when not to buy
When you don't need this — nopCommerce → PostHog
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
- If your team already sends orders server-side from the application, this is done and the remaining work is reconciliation.
- 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.
nopCommerce → PostHog · what we deliver
What gets built — nopCommerce → PostHog
Identifier capture into nopCommerce
Add the identifier as a custom order field in the data model, so it survives redeploys as a schema change rather than as a script.
Event source: the nopCommerce order table
Send orders with payment status paid, at the order subtotal.
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
Refunds and voids reverse.
Written guarantee
95%+ tracking accuracy
Measured against nopCommerce orders by payment status, from the database rather than from a page.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
nopCommerce → PostHog questions, answered
Store the PostHog distinct_id on the customer, then send the paid order server-side with that ID and the order GUID as the event UUID.
Usually the checkout mode changed between one-page and multi-step, which changes the URLs. Use named checkout-step events instead of URLs.
Almost always because the distinct_id never reached the nopCommerce order. Custom builds mean the checkout flow differs per installation, and a redeploy can remove tracking that was added by hand. 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 nopCommerce order table. Send orders with payment status paid, at the order subtotal.
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 nopCommerce → PostHog
- Stripe → PostHogConnecting Stripe to PostHog
- PayPal → PostHogConnecting PayPal to PostHog
- Shopify → PostHogConnecting Shopify to PostHog
RELATED GUIDES
Where nopCommerce → PostHog fits in the rest of your tracking
- Magento → PostHogConnecting Magento to PostHog
- Wix → PostHogConnecting Wix Stores to PostHog
- WooCommerce → PostHogConnecting WooCommerce to PostHog
- nopCommerce → MatomoConnecting nopCommerce to Matomo
- nopCommerce → GA4Connecting nopCommerce to GA4
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- BigCommerce → PostHogConnecting BigCommerce to PostHog
- Checkout Extensibility → PostHogConnecting Shopify Checkout Extensibility to PostHog
Free · 30 min
Get nopCommerce and PostHog joined properly
Free30 minutesNo obligation
