Skip to main content
Easyship → PostHogIntegration guide

Connecting Easyship to PostHog

Easyship is built for cross-border shipping, where duties, taxes and customs make the difference between the price a customer paid and what you keep genuinely unpredictable. 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 Easyship 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

Easyship duties at checkout as a PostHog funnel step

Capture a PostHog event when checkout shows Easyship's shipping quote, with destination country, courier option and duties amount, on the session's distinct_id. Send the paid order server-side to the capture API with that distinct_id and an event UUID, then funnel quote-shown to order-paid by country. Keep later delivery events out of short-window funnels.

For a cross-border store, the step where shoppers leave is often the one where shipping and duties appear. If checkout shows Easyship's rate quote, with taxes and duties for the destination, that is the moment a buyer in a high-duty country sees the real price. PostHog is a good place to measure it, because a product analytics funnel can break drop-off down by country.

Capture an event when the shipping quote is shown, with destination country, courier option and the duties amount as properties, on the same distinct_id as the rest of the session. Then send the paid order from your server to the capture API with that distinct_id carried on the order, and an event UUID so retries do not duplicate. A funnel from quote shown to order paid, split by country, tells you whether duties-paid pricing is converting better than duties-on-delivery in a given market.

Delivery events from Easyship can be added later as server events on the same person, but they arrive weeks after the session. Keep them out of conversion funnels with short windows, or the funnel will show international orders as incomplete when they are simply still in transit.

Easyship → PostHog · what breaks

Why this join usually fails — Easyship → PostHog

  1. 01

    The distinct_id never reaches Easyship

    Duties and taxes are frequently determined after dispatch, so the true cost of an order can settle weeks later.

  2. 02

    One margin figure across very different markets

    A campaign performing well in a nearby market and badly in a distant one will average to acceptable, and the budget will keep flowing to both.

  3. 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.

  4. 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.

Easyship → PostHog · the fix

What working looks like — Easyship → 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

Easyship → PostHog · architecture

How Easyship and PostHog actually connect

  1. 1

    Easyship holds the truth

    Cross-border economics differ by country far more than by campaign. A single blended margin figure across markets describes none of them.

  2. 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. 3

    The identifier is the bridge

    The distinct_id, captured at the visit and carried into the Easyship shipment.

  4. 4

    The event source decides reliability

    Send contribution margin by destination country, so per-market performance is readable.

  5. 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.

Easyship → PostHog · normal or broken

Working vs. broken, side by side — Easyship → PostHog

Normal, not a fault

  • The distinct_id present on the shipment

  • Sent from your order system, enriched with landed 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

    Duties and taxes are frequently determined after dispatch, so the true cost of an order can settle weeks later.

  • Sent from the browser

    A campaign performing well in a nearby market and badly in a distant one will average to acceptable, and the budget will keep flowing to 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

Easyship → PostHog · diagnose

Diagnostic order — Easyship → PostHog

  1. 01

    Count shipments carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Split contribution margin by destination country

    The variation is usually large enough to change which markets you advertise in at all.

  4. 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.

  5. 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.

Easyship → PostHog · prove

How it gets proven — Easyship → PostHog

Source of truth

Orders joined to landed cost — shipping plus duties and taxes — by destination country.

  • 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 landed-cost margin per country against imported conversions.

Easyship → PostHog · free audit

What we check in the free audit

  • Count shipments carrying the distinct_id
  • Follow one real conversion end to end
  • Split contribution margin by destination country
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Orders joined to landed cost — shipping plus duties and taxes — by destination country.

Get my free conversion tracking audit

Free30 minutesNo obligation

Easyship → PostHog · when not to buy

When you don't need this — Easyship → PostHog

  • Measure identifier coverage yourself first — pull your last hundred shipments and count how many carry the distinct_id.
  • Domestic-only sellers do not have this problem and a flat shipping assumption will serve them fine.
  • 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.

Easyship → PostHog · what we deliver

What gets built — Easyship → PostHog

  • Identifier capture into Easyship

    Join on the order and update the margin when landed cost is final, rather than reporting the estimate.

  • Event source: your order system, enriched with landed cost

    Send contribution margin by destination country, so per-market performance is readable.

  • 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, and cross-border returns cost more than domestic ones.

Written guarantee

95%+ tracking accuracy

Measured against Orders joined to landed cost — shipping plus duties and taxes — by destination country.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Easyship → PostHog questions, answered

Capture an event when the shipping and duties quote is shown, with country and duties amount, and build a PostHog funnel to paid order split by country.

Free · 30 min

Get Easyship and PostHog joined properly

Free30 minutesNo obligation