Connecting Shippo to PostHog
Shippo is multi-carrier shipping for smaller merchants, where the practical question is usually whether delivery speed is costing you repeat business rather than what a label cost. 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 Shippo shipment 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
Shippo to PostHog: delivery events on the buyer's distinct_id
Store the distinct_id on the order at checkout, then post label purchased, delivered and delivery failure events to PostHog's capture API with days to delivery, carrier and label cost, using a UUID from tracking number plus status. Skip in-transit scans and street addresses, and compare second orders by delivery-days bucket and first-touch source.
PostHog is one of the few destinations where Shippo tracking updates belong as events in their own right. Post a delivered event to the capture API with the buyer's distinct_id, the days from order to delivery, the carrier and the label cost, and PostHog can show retention cohorts split by delivery speed next to the acquisition source it already recorded.
The join is the hard part. Shippo knows an order number and an address; PostHog knows a distinct_id. Store the distinct_id, or the customer ID you pass to identify on login, on the order at checkout, then look it up when Shippo's tracking webhook fires. Guest checkouts with no identify call sit on an anonymous ID that may never alias to the real person, so their delivery events float unattached. Set the event UUID from the tracking number plus status so a repeated webhook does not create a second delivered event.
Do not forward every in-transit scan. Send label purchased, delivered and delivery failure, nothing else. The question is whether slow first deliveries reduce the second order, and a funnel from purchase to delivered to second purchase, broken down by first-touch UTM source and by delivery-days bucket, answers it directly. If you self-host PostHog, keep the address out anyway; send state or region as a property for breakdowns.
Shippo → PostHog · what breaks
Why this join usually fails — Shippo → PostHog
- 01
The distinct_id never reaches Shippo
Labels are purchased after the order and delivery confirmation arrives days later.
- 02
Slow delivery blamed on the campaign
Repeat purchase rates track delivery experience closely. A campaign reaching a region you serve slowly will look like it acquires bad customers, when it acquires ordinary customers you served badly.
- 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.
Shippo → PostHog · the fix
What working looks like — Shippo → 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
Shippo → PostHog · architecture
How Shippo and PostHog actually connect
- 1
Shippo holds the truth
Delivery time is the underused half. A channel producing customers in slow-delivery regions will show worse repeat rates for reasons that have nothing to do with the advertising.
- 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 Shippo shipment.
- 4
The event source decides reliability
Send orders net of label cost, and report delivery time by region alongside.
- 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.
Shippo → PostHog · normal or broken
Working vs. broken, side by side — Shippo → PostHog
Normal, not a fault
The distinct_id present on the shipment
Sent from your order system, enriched with shipping cost and delivery time
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
Labels are purchased after the order and delivery confirmation arrives days later.
Sent from the browser
Repeat purchase rates track delivery experience closely. A campaign reaching a region you serve slowly will look like it acquires bad customers, when it acquires ordinary customers you served badly.
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
Shippo → PostHog · diagnose
Diagnostic order — Shippo → PostHog
- 01
Count shipments carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Compare repeat rate against delivery time by region
The correlation is usually visible immediately and it moves the conversation from media to operations.
- 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.
Shippo → PostHog · prove
How it gets proven — Shippo → PostHog
Source of truth
Orders joined to their actual label cost and delivery time.
- 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 net of label cost against imported conversions, with delivery time reported by region.
Shippo → PostHog · free audit
What we check in the free audit
- Count shipments carrying the distinct_id
- Follow one real conversion end to end
- Compare repeat rate against delivery time by region
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Orders joined to their actual label cost and delivery time.
Free30 minutesNo obligation
Shippo → PostHog · when not to buy
When you don't need this — Shippo → PostHog
- Measure identifier coverage yourself first — pull your last hundred shipments and count how many carry the distinct_id.
- If you ship one product to one country at a flat rate, none of this variation exists.
- 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.
Shippo → PostHog · what we deliver
What gets built — Shippo → PostHog
Identifier capture into Shippo
Join on the order and carry both cost and delivery duration back for reporting.
Event source: your order system, enriched with shipping cost and delivery time
Send orders net of label cost, and report delivery time by region alongside.
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.
Written guarantee
95%+ tracking accuracy
Measured against Orders joined to their actual label cost and delivery time.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Shippo → PostHog questions, answered
Subscribe to Shippo's tracking webhook, look up the order's stored distinct_id, and post an event to the PostHog capture API. Forward only meaningful statuses such as delivered or failed.
No. Send state or region as an event property for breakdowns, not the full address.
Almost always because the distinct_id never reached the Shippo shipment. Labels are purchased after the order and delivery confirmation arrives days later. 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 shipping cost and delivery time. Send orders net of label cost, and report delivery time by region alongside.
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 Shippo → PostHog
- Stripe → PostHogConnecting Stripe to PostHog
- PayPal → PostHogConnecting PayPal to PostHog
- Shopify → PostHogConnecting Shopify to PostHog
RELATED GUIDES
Where Shippo → PostHog fits in the rest of your tracking
- ShipBob → PostHogConnecting ShipBob to PostHog
- Easyship → PostHogConnecting Easyship to PostHog
- Shippo → Adobe AnalyticsConnecting Shippo to Adobe Analytics
- Shippo → AmplitudeConnecting Shippo to Amplitude
- Wholesale distributionConversion tracking for wholesale, measured in trading accounts
- ShipStation → MixpanelConnecting ShipStation to Mixpanel
- ShipBob → MixpanelConnecting ShipBob to Mixpanel
- Easyship → MixpanelConnecting Easyship to Mixpanel
Free · 30 min
Get Shippo and PostHog joined properly
Free30 minutesNo obligation
