Connecting ShipBob to PostHog
ShipBob is outsourced fulfilment, which means pick, pack and storage fees sit between the order value and what you keep — and none of them are visible at checkout. 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 ShipBob 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
Delivery speed vs repeat purchase in PostHog with ShipBob events
Send a server-side delivered event to PostHog when ShipBob confirms delivery, with the buyer's identified distinct_id stored on the order at checkout, order ID, fulfilment centre and days to delivery. Generate the event UUID from shipment ID and status so retries are ignored, decide which split shipment counts, then compare repeat purchase by delivery time.
PostHog is the right place to ask whether ShipBob's delivery speed affects what customers do next. Send a server-side delivered event when ShipBob confirms delivery, carrying the distinct_id of the buyer, the order ID, the fulfilment centre and the number of days from order to delivery. With that on the person, a retention insight can split repeat purchase by delivery time.
The distinct_id has to be the one PostHog already has for that customer, which means your store must record it at checkout and keep it on the order. ShipBob's webhook arrives days later with no browser session at all. If you identify customers by email after login and alias the anonymous ID, use the identified ID; posting a delivered event under a new ID creates a person with one event and no history.
ShipBob webhooks can be retried, and one order can split into several shipments. Generate the event UUID deterministically from the ShipBob shipment ID and status so a retry is ignored, and decide whether the analysis uses the first or last shipment's delivery. On a self-hosted instance, nobody else will notice that a day of delivered events went missing.
ShipBob → PostHog · what breaks
Why this join usually fails — ShipBob → PostHog
- 01
The distinct_id never reaches ShipBob
Fulfilment happens in a third party's system days after the order.
- 02
Per-item fulfilment costs invisible in order value
A campaign driving small multi-item baskets can look strong on revenue and be unprofitable once pick fees are counted. The order value never sees it and neither does the ad platform.
- 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.
ShipBob → PostHog · the fix
What working looks like — ShipBob → PostHog
The distinct_id on every shipment
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
ShipBob → PostHog · architecture
How ShipBob and PostHog actually connect
- 1
ShipBob holds the truth
Third-party logistics costs are per-order and per-item, so a multi-item order and a single-item order of the same value have quite different economics.
- 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 ShipBob order.
- 4
The event source decides reliability
Send contribution margin rather than order value where fulfilment cost is available.
- 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.
ShipBob → PostHog · normal or broken
Working vs. broken, side by side — ShipBob → PostHog
Normal, not a fault
The distinct_id present on the shipment
Sent from your order system, enriched with fulfilment cost
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
Fulfilment happens in a third party's system days after the order.
Sent from the browser
A campaign driving small multi-item baskets can look strong on revenue and be unprofitable once pick fees are counted. The order value never sees it and neither does the ad platform.
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
ShipBob → PostHog · diagnose
Diagnostic order — ShipBob → PostHog
- 01
Count shipments carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Compute contribution margin per campaign for one month
It is a join, not a project, and it frequently reorders the campaign ranking.
- 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.
ShipBob → PostHog · prove
How it gets proven — ShipBob → PostHog
Source of truth
Orders joined to their fulfilment cost, including pick, pack, storage and shipping.
- The distinct_id confirmed present on a live shipment.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- Orders reconciled at contribution margin against imported conversions.
ShipBob → PostHog · free audit
What we check in the free audit
- Count shipments carrying the distinct_id
- Follow one real conversion end to end
- Compute contribution margin per campaign for one month
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Orders joined to their fulfilment cost, including pick, pack, storage and shipping.
Free30 minutesNo obligation
ShipBob → PostHog · when not to buy
When you don't need this — ShipBob → PostHog
- Measure identifier coverage yourself first — pull your last hundred shipments and count how many carry the distinct_id.
- If your fulfilment cost is flat per order and small relative to basket value, order value is a fine proxy.
- 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.
ShipBob → PostHog · what we deliver
What gets built — ShipBob → PostHog
Identifier capture into ShipBob
Join on the order identifier and pull the fulfilment cost back onto the order before valuing the conversion.
Event source: your order system, enriched with fulfilment cost
Send contribution margin rather than order value where fulfilment cost is available.
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
Returns reverse, including the return handling fee.
Written guarantee
95%+ tracking accuracy
Measured against Orders joined to their fulfilment cost, including pick, pack, storage and shipping.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
ShipBob → PostHog questions, answered
Post a server-side event when ShipBob confirms delivery, using the distinct_id stored on the order at checkout, with delivery days and fulfilment centre as properties.
Derive the event UUID from the ShipBob shipment ID and status, so retried webhooks resolve to the same event.
Almost always because the distinct_id never reached the ShipBob order. Fulfilment happens in a third party's system days after the order. 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.
Your order system, enriched with fulfilment cost. Send contribution margin rather than order value where fulfilment cost is available.
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 ShipBob → PostHog
- Stripe → PostHogConnecting Stripe to PostHog
- PayPal → PostHogConnecting PayPal to PostHog
- Shopify → PostHogConnecting Shopify to PostHog
RELATED GUIDES
Where ShipBob → PostHog fits in the rest of your tracking
- Easyship → PostHogConnecting Easyship to PostHog
- ShipBob → AmplitudeConnecting ShipBob to Amplitude
- ShipBob → MatomoConnecting ShipBob to Matomo
- Wholesale distributionConversion tracking for wholesale, measured in trading accounts
- ShipStation → GA4Connecting ShipStation to GA4
- ShipStation → MixpanelConnecting ShipStation to Mixpanel
- Shippo → Adobe AnalyticsConnecting Shippo to Adobe Analytics
- ShipStation → Adobe AnalyticsConnecting ShipStation to Adobe Analytics
Free · 30 min
Get ShipBob and PostHog joined properly
Free30 minutesNo obligation
