Connecting Flow Commerce to PostHog
Flow handles cross-border pricing, duties and landed cost, which means the price a shopper sees is calculated per market and your margin varies by destination in ways the order value does not show. 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 Flow international 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
Flow orders in PostHog: funnels split by shopper market
Capture localized price views, checkout starts and orders in PostHog with destination country and local currency, to find where landed cost drives drop-off. Pass the distinct_id into cart attributes before localization, bootstrap it on Flow's checkout if scripts are allowed, and send the order server-side with that distinct_id, a UUID per event and returns as separate events.
PostHog is the place to answer the question Flow data raises and ad platforms cannot: where in the funnel do international shoppers give up, and does it differ by country. The usual suspect is the moment the landed cost appears. Capture the localized price view, the checkout start and the order as events carrying the destination country and local currency as properties, and you can compare conversion between markets that see duties up front and markets that see them late.
The join depends on the distinct_id surviving the hop to the localized checkout. If the checkout runs on a Flow-managed surface where your PostHog snippet either is not present or starts fresh, each shopper becomes a new anonymous person and the funnel ends at checkout start for everyone. Pass the distinct_id into the cart or order attributes before localization, bootstrap it on the checkout if you can add scripts there, and send the order server-side from the Flow order record with that same distinct_id and the Flow order number as a property.
Send refunds and international returns as their own events rather than deleting the order event, so you can see return rate by destination country next to conversion rate. Supply a UUID per event so a retried batch from your order webhook handler does not count a cross-border order twice.
Flow → PostHog · what breaks
Why this join usually fails — Flow → PostHog
- 01
The distinct_id never reaches Flow
Localised checkout can run on a Flow-managed surface with its own currency and pricing.
- 02
One international figure across many economies
Duty rates, shipping costs and return rates all differ by country. A single international line in the report averages profitable markets with loss-making ones and keeps funding both.
- 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.
Flow → PostHog · the fix
What working looks like — Flow → 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
Flow Commerce's own records are the reference, not either dashboard.
Flow → PostHog · architecture
How Flow and PostHog actually connect
- 1
Flow Commerce holds the truth
Landed-cost pricing means two orders of identical value to different countries can leave you materially different amounts. A blended international figure describes neither.
- 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 Flow international order.
- 4
The event source decides reliability
Send orders at net-to-merchant value, split by destination market.
- 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.
Flow → PostHog · normal or broken
Working vs. broken, side by side — Flow → PostHog
Normal, not a fault
The distinct_id present on the order
Visible on the record itself in Flow Commerce, not merely captured somewhere on the site.
Sent from the Flow order 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
PostHog's count and Flow Commerce's records agree within a few percent over a closed window.
Actually broken
The distinct_id missing on most records
Localised checkout can run on a Flow-managed surface with its own currency and pricing.
Sent from the browser
Duty rates, shipping costs and return rates all differ by country. A single international line in the report averages profitable markets with loss-making ones and keeps funding both.
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
The dashboard shows a number and no one has compared it to Flow Commerce.
Flow → PostHog · diagnose
Diagnostic order — Flow → PostHog
- 01
Count orders carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Report net margin by destination country, not by region
Regional grouping hides the variation that actually decides where to spend.
- 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.
Flow → PostHog · prove
How it gets proven — Flow → PostHog
Against Flow Commerce's own records, not against either platform's dashboard.
Source of truth
Orders net of duties, taxes and cross-border fees, by destination market.
- 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.
- Net-to-merchant revenue reconciled per country against imported conversions.
Flow → PostHog · free audit
What we check in the free audit
- Count orders carrying the distinct_id
- Follow one real conversion end to end
- Report net margin by destination country, not by region
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Orders net of duties, taxes and cross-border fees, by destination market.
Free30 minutesNo obligation
Flow → PostHog · when not to buy
When you don't need this — Flow → PostHog
- If PostHog already reports conversions that reconcile against Flow Commerce's records within a few percent, this join is working and there is nothing to buy.
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
- If you ship to one or two nearby markets at similar cost, a blended figure is adequate.
- 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.
Flow → PostHog · what we deliver
What gets built — Flow → PostHog
Identifier capture into Flow
Capture before localisation and carry the identifier through to the international order.
Event source: the Flow order record
Send orders at net-to-merchant value, split by destination market.
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
International returns reverse at full logistics cost.
Written guarantee
95%+ tracking accuracy
Measured against Orders net of duties, taxes and cross-border fees, by destination market.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Flow → PostHog questions, answered
The checkout surface is minting a new anonymous distinct_id or not running PostHog at all. Carry the original distinct_id in the order attributes and send the order server-side with it.
Destination country, local currency, local amount, net-to-merchant amount in your reporting currency, and the Flow order number, so funnels and revenue can be broken down per market.
Almost always because the distinct_id never reached the Flow international order. Localised checkout can run on a Flow-managed surface with its own currency and pricing. 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 Flow order record. Send orders at net-to-merchant value, split by destination market.
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 Flow → PostHog
- Squarespace → PostHogConnecting Squarespace Commerce to PostHog
- Drupal Commerce → PostHogConnecting Drupal Commerce to PostHog
- Flow → Google AdsConnecting Flow Commerce to Google Ads
RELATED GUIDES
Where Flow → PostHog fits in the rest of your tracking
- Global-e → PostHogConnecting Global-e to PostHog
- Zonos → PostHogConnecting Zonos to PostHog
- Flow → GA4Connecting Flow Commerce to GA4
- Flow → Adobe AnalyticsConnecting Flow Commerce to Adobe Analytics
- FashionConversion tracking for fashion brands, reported net of returns
- Global-e → MixpanelConnecting Global-e to Mixpanel
- Global-e → GA4Connecting Global-e to GA4
- Zonos → MatomoConnecting Zonos to Matomo
Free · 30 min
Get Flow and PostHog joined properly
Free30 minutesNo obligation
