Connecting Smile.io to PostHog
Smile.io issues points that customers redeem later, which means every point awarded is a liability and every redemption is a discount against a future order. 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 Smile.io points redemption 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 for Smile.io: does the program change behavior?
Use the store customer ID as the PostHog distinct_id and set tier, points balance and member-since date as person properties, updated server-side from Smile.io's webhooks or API. Call identify at login, which Smile requires to show balances. Compare each member's purchase frequency before and after joining, not members against non-members, and don't rely on replay inside the Smile frame.
PostHog is the right place to ask the question loyalty vendors rarely answer honestly: do members buy more because of the program, or did your best customers simply join it? Use the store customer ID as the distinct_id, and set tier, points balance and member-since date as person properties, updated server-side from Smile.io's webhooks or API. Then compare purchase frequency before and after joining, not members against non-members, since that comparison is mostly selection.
The join point is login. Smile.io needs a logged-in customer account to show a balance or apply a reward, which gives you a clean moment to call identify and merge the anonymous storefront browsing into the known person. Members who never log in stay anonymous in PostHog even though Smile.io knows them from their orders, so server-side events keyed on the customer ID matter more than browser capture here.
If you want to test reward offers or launcher placement, PostHog's experiments can split visitors, but the result has to be read on orders and redemptions recorded server-side. Session replay is weaker here: the Smile.io panel runs in its own frame, and cross-origin frames are generally not captured, so check what your replays actually show before relying on them.
Smile.io → PostHog · what breaks
Why this join usually fails — Smile.io → PostHog
- 01
The distinct_id never reaches Smile.io
The rewards widget renders in a Smile-served frame that does not share your page's storage.
- 02
Points liability invisible in the conversion value
An order that awards points is worth its value minus the eventual redemption. Reporting the gross figure on every order overstates margin by the whole cost of the loyalty programme.
- 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.
Smile.io → PostHog · the fix
What working looks like — Smile.io → PostHog
The distinct_id on every redemption
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
Smile.io → PostHog · architecture
How Smile.io and PostHog actually connect
- 1
Smile.io holds the truth
A redeemed order is retention revenue at a reduced margin. Crediting it to the paid click that acquired the customer originally counts one acquisition twice and at the wrong value.
- 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 Smile.io points redemption.
- 4
The event source decides reliability
Send orders net of the discount points redeemed, with first orders and reward-driven repeats marked.
- 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.
Smile.io → PostHog · normal or broken
Working vs. broken, side by side — Smile.io → PostHog
Normal, not a fault
The distinct_id present on the redemption
Sent from your order feed with Smile attributes attached
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
The rewards widget renders in a Smile-served frame that does not share your page's storage.
Sent from the browser
An order that awards points is worth its value minus the eventual redemption. Reporting the gross figure on every order overstates margin by the whole cost of the loyalty programme.
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
Smile.io → PostHog · diagnose
Diagnostic order — Smile.io → PostHog
- 01
Count redemptions carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Compare gross order value against value net of points issued and redeemed
The gap is the programme's real cost, and it is rarely in any marketing report.
- 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.
Smile.io → PostHog · prove
How it gets proven — Smile.io → PostHog
Source of truth
Store orders flagged by whether points were earned or redeemed on them.
- The distinct_id confirmed present on a live redemption.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- First orders reconciled against imported conversions, with redemption-driven orders reported separately.
Smile.io → PostHog · free audit
What we check in the free audit
- Count redemptions carrying the distinct_id
- Follow one real conversion end to end
- Compare gross order value against value net of points issued and redeemed
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Store orders flagged by whether points were earned or redeemed on them.
Free30 minutesNo obligation
Smile.io → PostHog · when not to buy
When you don't need this — Smile.io → PostHog
- Measure identifier coverage yourself first — pull your last hundred redemptions and count how many carry the distinct_id.
- If you run no loyalty programme, this reduces to an ordinary store integration.
- 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.
Smile.io → PostHog · what we deliver
What gets built — Smile.io → PostHog
Identifier capture into Smile.io
Capture on your own domain before the widget loads and record points activity on the order so acquisition and retention stay separable.
Event source: your order feed with Smile attributes attached
Send orders net of the discount points redeemed, with first orders and reward-driven repeats marked.
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 and should claw back awarded points.
Written guarantee
95%+ tracking accuracy
Measured against Store orders flagged by whether points were earned or redeemed on them.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Smile.io → PostHog questions, answered
Use the store customer ID as the distinct_id, call identify when the customer logs in, and push tier and balance as person properties from Smile.io data on your server.
Probably not in detail, because the panel loads in a frame served by Smile.io. Check a few of your own replays before planning analysis around it.
Almost always because the distinct_id never reached the Smile.io points redemption. The rewards widget renders in a Smile-served frame that does not share your page's storage. 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 feed with Smile attributes attached. Send orders net of the discount points redeemed, with first orders and reward-driven repeats marked.
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 Smile.io → PostHog
- Smile.io → Google AdsConnecting Smile.io to Google Ads
- Smile.io → MetaConnecting Smile.io to Meta Conversions API
- Smile.io → GA4Connecting Smile.io to GA4
RELATED GUIDES
Where Smile.io → PostHog fits in the rest of your tracking
- LoyaltyLion → PostHogConnecting LoyaltyLion to PostHog
- Antavo → PostHogConnecting Antavo to PostHog
- Talon.One → PostHogConnecting Talon.One to PostHog
- Smile.io → MatomoConnecting Smile.io to Matomo
- Smile.io → MixpanelConnecting Smile.io to Mixpanel
- RestaurantsConversion tracking for restaurants, across reservations, orders and calls
- Punchh → PostHogConnecting Punchh to PostHog
Free · 30 min
Get Smile.io and PostHog joined properly
Free30 minutesNo obligation
