Skip to main content
Shopify POS → PostHogIntegration guide

Connecting Shopify POS to PostHog

Shopify POS writes counter sales into the same order table as the online store, which is genuinely useful for inventory and quietly ruinous for advertising reporting. 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 Shopify POS 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

Shopify POS purchases in PostHog as person events

Send in-store purchases to PostHog's capture API from the POS-filtered order webhook only when a customer is attached, using the Shopify customer ID as distinct_id, the same ID you identify online. Use a distinct store-purchase event name with location, items and total, and an order-ID-derived UUID. Keep these events out of online funnels.

PostHog's value for a store with a counter is the person view: one customer's online browsing, account activity and in-store purchases on one timeline. That works only for POS orders with an attached customer whose Shopify customer ID is also what you pass to identify when they log in online. Anonymous counter sales cannot join anyone and should not be sent as events under random IDs.

Send in-store purchases from the order webhook, filtered to the POS channel, to the capture API with the Shopify customer ID as the distinct_id, a distinct event name such as one reserved for store purchases, and the location, items and total as properties. A UUID derived from the order ID protects against a replayed webhook. The interesting analysis is then cohort-level: how many people who viewed a product online bought it in a store within a week.

Keep these events out of online funnels and conversion insights. A funnel from product page to purchase that counts counter sales will report a conversion rate no website achieved. Stores using PostHog for session replay should note there is nothing to replay for an in-store event; it will show on the person's timeline with no session attached, which is correct.

Shopify POS → PostHog · what breaks

Why this join usually fails — Shopify POS → PostHog

  1. 01

    The distinct_id never reaches Shopify POS

    There is no browser at the till. POS orders arrive with no referrer, no session and no identifier of any kind.

  2. 02

    Counter sales flowing into online conversions

    Because both live in Shopify's order table, the default integration sends everything. Reported return then climbs with footfall, and a good Saturday in the shop reads as a successful ad campaign.

  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.

Shopify POS → PostHog · the fix

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

Shopify POS → PostHog · architecture

How Shopify POS and PostHog actually connect

  1. 1

    Shopify POS holds the truth

    One order table, two businesses. The channel field is the only thing separating revenue a click could have produced from revenue a person walking past produced.

  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 Shopify POS order.

  4. 4

    The event source decides reliability

    Send online-channel orders at their value. Report POS revenue alongside as context, never inside the same conversion action.

  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.

Shopify POS → PostHog · normal or broken

Working vs. broken, side by side — Shopify POS → PostHog

Normal, not a fault

  • The distinct_id present on the order

  • Sent from the Shopify order webhook, filtered by channel

  • 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

    There is no browser at the till. POS orders arrive with no referrer, no session and no identifier of any kind.

  • Sent from the browser

    Because both live in Shopify's order table, the default integration sends everything. Reported return then climbs with footfall, and a good Saturday in the shop reads as a successful ad campaign.

  • 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

Shopify POS → PostHog · diagnose

Diagnostic order — Shopify POS → PostHog

  1. 01

    Count orders carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Filter by sales channel and compare against the online order count

    If the filtered figure does not match Shopify's own online channel report, the filter is wrong before the tracking is.

  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.

Shopify POS → PostHog · prove

How it gets proven — Shopify POS → PostHog

Source of truth

Shopify orders filtered by sales channel, with POS held apart from the online store.

  • 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.
  • Online-channel orders reconciled against imported conversions for a settled week.

Shopify POS → PostHog · free audit

What we check in the free audit

  • Count orders carrying the distinct_id
  • Follow one real conversion end to end
  • Filter by sales channel and compare against the online order count
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Shopify orders filtered by sales channel, with POS held apart from the online store.

Get my free conversion tracking audit

Free30 minutesNo obligation

Shopify POS → PostHog · when not to buy

When you don't need this — Shopify POS → PostHog

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
  • A shop whose online sales are a rounding error should measure directions, calls and offer-code redemptions instead of building a revenue import.
  • 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.

Shopify POS → PostHog · what we deliver

What gets built — Shopify POS → PostHog

  • Identifier capture into Shopify POS

    Attribute the online channel only. Measure in-store influence with an offer code or a geo holdout rather than pretending the till is trackable.

  • Event source: the Shopify order webhook, filtered by channel

    Send online-channel orders at their value. Report POS revenue alongside as context, never inside the same conversion action.

  • 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

    Refunds reverse, per channel.

Written guarantee

95%+ tracking accuracy

Measured against Shopify orders filtered by sales channel, with POS held apart from the online store.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Shopify POS → PostHog questions, answered

Yes, as events on identified people, when the POS order has a customer attached and the distinct_id is the Shopify customer ID used online.

Free · 30 min

Get Shopify POS and PostHog joined properly

Free30 minutesNo obligation