Skip to main content
Global-e → PostHogIntegration guide

Connecting Global-e to PostHog

Global-e frequently acts as merchant of record for international orders, which means the transaction is legally theirs and what reaches you is a settlement rather than the customer's payment. 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 Global-e 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

PostHog funnels across the Global-e checkout, split by market

PostHog cannot see Global-e's duties, shipping and payment steps when checkout runs off your page. Store the distinct_id on the cart, often as a Shopify cart attribute, and send an order completed event from your backend with market, currency, settled amount and duties-prepaid flag, using the store order number as event UUID. Keep names and addresses out of properties.

PostHog shows where international shoppers drop out, and with Global-e the most important drop is usually invisible to it. Your snippet sees product pages, the cart and the click into checkout; if the Global-e checkout runs in an embedded frame or on another domain, the duties screen, the shipping options and the payment step happen out of view. A funnel that ends at checkout started tells you nothing about whether shoppers in a given country leave when they see the duty and tax total.

Close the end of the funnel server-side. Store the PostHog distinct_id on the cart so it travels into the order (on Shopify, a cart attribute is the usual carrier; check that it survives the Global-e flow on your platform) and send an order completed event from your backend with that distinct_id, the market, currency, settled amount and whether duties were prepaid. Use the store order number as the event UUID so a retried webhook does not duplicate.

Then break the funnel down by market. A country where checkout starts are healthy but completed orders lag is usually a pricing or duties problem that no ad change will fix. Keep shopper names and addresses out of event properties; PostHog needs the market and the money, and holding EU shoppers' addresses there brings GDPR questions you do not need.

Global-e → PostHog · what breaks

Why this join usually fails — Global-e → PostHog

  1. 01

    The distinct_id never reaches Global-e

    International checkout is frequently handed off to a Global-e-hosted flow, and the currency and pricing shown differ from your own store.

  2. 02

    The customer's total reported as your revenue

    Duties, taxes, currency spread and the merchant-of-record fee all sit between what the shopper paid and what arrives. Reporting the shopper's figure overstates international performance systematically.

  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.

Global-e → PostHog · the fix

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

Global-e → PostHog · architecture

How Global-e and PostHog actually connect

  1. 1

    Global-e holds the truth

    Under a merchant-of-record model the shopper pays Global-e, who handles duties, taxes and currency and settles a different amount to you. The gap between the two is not small and it varies by market.

  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 Global-e international order.

  4. 4

    The event source decides reliability

    Send orders at the settled amount you receive, per market, not at the customer's total.

  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.

Global-e → PostHog · normal or broken

Working vs. broken, side by side — Global-e → PostHog

Normal, not a fault

  • The distinct_id present on the order

  • Sent from the Global-e settlement 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

Actually broken

  • The distinct_id missing on most records

    International checkout is frequently handed off to a Global-e-hosted flow, and the currency and pricing shown differ from your own store.

  • Sent from the browser

    Duties, taxes, currency spread and the merchant-of-record fee all sit between what the shopper paid and what arrives. Reporting the shopper's figure overstates international performance systematically.

  • 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

Global-e → PostHog · diagnose

Diagnostic order — Global-e → PostHog

  1. 01

    Count orders carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare customer-facing totals against settlements by market

    The gap is the number nobody has, and it decides which international markets are worth advertising in.

  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.

Global-e → PostHog · prove

How it gets proven — Global-e → PostHog

Source of truth

Global-e settlements by market, not the customer-facing order totals.

  • 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.
  • Settled amounts reconciled per market against imported conversions.

Global-e → PostHog · free audit

What we check in the free audit

  • Count orders carrying the distinct_id
  • Follow one real conversion end to end
  • Compare customer-facing totals against settlements by market
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Global-e settlements by market, not the customer-facing order totals.

Get my free conversion tracking audit

Free30 minutesNo obligation

Global-e → PostHog · when not to buy

When you don't need this — Global-e → PostHog

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
  • If you sell internationally on your own merchant account, you already see the true figure and this complexity does not apply.
  • 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.

Global-e → PostHog · what we deliver

What gets built — Global-e → PostHog

  • Identifier capture into Global-e

    Capture on your own domain before the handoff and carry the identifier into the international order record.

  • Event source: the Global-e settlement record

    Send orders at the settled amount you receive, per market, not at the customer's total.

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

Written guarantee

95%+ tracking accuracy

Measured against Global-e settlements by market, not the customer-facing order totals.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Global-e → PostHog questions, answered

Usually not, if the checkout runs in an embedded frame or on another domain. Send the completed order server-side with the carried-over distinct_id.

Free · 30 min

Get Global-e and PostHog joined properly

Free30 minutesNo obligation