Connecting Mews to PostHog
Mews is a modern hospitality platform built API-first, which makes it one of the more tractable lodging systems to integrate and does nothing about the OTA problem. 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 Mews reservation 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
Mews and PostHog: measuring the handoff into the booking engine
Use PostHog to find where direct bookers drop out before or inside the Mews booking engine. Pass the distinct_id through the handoff onto the reservation, then send the confirmed reservation to the capture API with an event UUID from the reservation ID, room revenue, nights, rate plan, arrival date and lead time. Report bookings without an identity as a share.
The most useful question PostHog can answer for a Mews property is where direct bookers drop out: on your site, at the handoff, or inside the engine. Your own pages are easy to instrument; the engine is on its own domain, so unless it accepts your scripts PostHog sees the click on the book button and then nothing. Pass the distinct_id into the handoff so it lands on the reservation, and the webhook can close the funnel server-side.
Send the confirmed reservation to the capture API with that distinct_id, an event UUID derived from the reservation ID so webhook retries do not duplicate, plus room revenue, nights, rate plan and arrival date. Booking lead time, the days between booking and arrival, is worth sending as a property, because last-minute bookers and planners react to different site changes and pooling them hides both.
Mews reservations arriving with no matching distinct_id are informative too. Direct bookings without a PostHog identity came to the engine another way, such as a bookmarked engine URL, an old confirmation email or a metasearch link, and their share tells you how much direct booking your site analytics can never see. Report that share as a number instead of letting those bookings silently fall out of every funnel.
Mews → PostHog · what breaks
Why this join usually fails — Mews → PostHog
- 01
The distinct_id never reaches Mews
The Mews distributor booking engine is hosted, so the identifier must be passed deliberately. Ancillary spend during the stay — restaurant, spa, late checkout — lands on the folio afterwards and is invisible to any booking-time conversion.
- 02
The room rate is not the revenue
In a full-service property the folio at checkout can be substantially above the booked rate. Optimizing on the room rate alone makes bidding indifferent between guests who spend on site and guests who do not.
- 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.
Mews → PostHog · the fix
What working looks like — Mews → PostHog
The distinct_id on every reservation
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
Mews → PostHog · architecture
How Mews and PostHog actually connect
- 1
Mews holds the truth
Mews holds reservations, the folio and the eventual payment, so a single system can tell you what was booked and what was actually spent on site — which in hospitality frequently differ.
- 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 Mews reservation.
- 4
The event source decides reliability
Send confirmed direct reservations at booking. If ancillary spend is significant, send a second value adjustment at checkout rather than pretending the room rate was the whole sale.
- 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.
Mews → PostHog · normal or broken
Working vs. broken, side by side — Mews → PostHog
Normal, not a fault
The distinct_id present on the reservation
Sent from the Mews reservation webhook
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 Mews distributor booking engine is hosted, so the identifier must be passed deliberately. Ancillary spend during the stay — restaurant, spa, late checkout — lands on the folio afterwards and is invisible to any booking-time conversion.
Sent from the browser
In a full-service property the folio at checkout can be substantially above the booked rate. Optimizing on the room rate alone makes bidding indifferent between guests who spend on site and guests who do not.
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
Mews → PostHog · diagnose
Diagnostic order — Mews → PostHog
- 01
Count reservations carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Compare booked rate against folio total for a closed month
The gap is ancillary spend, and in some properties it is large enough to change which campaigns look profitable.
- 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.
Mews → PostHog · prove
How it gets proven — Mews → PostHog
Source of truth
Mews reservations by booking date with their total value, split by channel.
- The distinct_id confirmed present on a live reservation.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- Direct reservations reconciled per reservation, with the room-rate-versus-folio decision documented.
Mews → PostHog · free audit
What we check in the free audit
- Count reservations carrying the distinct_id
- Follow one real conversion end to end
- Compare booked rate against folio total for a closed month
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Mews reservations by booking date with their total value, split by channel.
Free30 minutesNo obligation
Mews → PostHog · when not to buy
When you don't need this — Mews → PostHog
- Measure identifier coverage yourself first — pull your last hundred reservations and count how many carry the distinct_id.
- For a limited-service property with negligible ancillary spend, the room rate is the whole value and this is simpler.
- 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.
Mews → PostHog · what we deliver
What gets built — Mews → PostHog
Identifier capture into Mews
Pass the identifier through the distributor's supported parameters onto the reservation, and decide whether the conversion value is the room rate or the eventual folio total.
Event source: the Mews reservation webhook
Send confirmed direct reservations at booking. If ancillary spend is significant, send a second value adjustment at checkout rather than pretending the room rate was the whole sale.
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
Cancellations and no-shows both occur and both should reduce the figure.
Written guarantee
95%+ tracking accuracy
Measured against Mews reservations by booking date with their total value, split by channel.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Mews → PostHog questions, answered
Only if the engine runs your scripts. Otherwise capture the click on your site, pass the distinct_id through, and send the reservation from the Mews webhook.
Generate the event UUID from the reservation ID and its state, so webhook retries resolve to the same event.
Almost always because the distinct_id never reached the Mews reservation. The Mews distributor booking engine is hosted, so the identifier must be passed deliberately. Ancillary spend during the stay — restaurant, spa, late checkout — lands on the folio afterwards and is invisible to any booking-time conversion. 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.
The Mews reservation webhook. Send confirmed direct reservations at booking. If ancillary spend is significant, send a second value adjustment at checkout rather than pretending the room rate was the whole sale.
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 Mews → PostHog
- Mews → Google AdsConnecting Mews to Google Ads
- Mews → MetaConnecting Mews to Meta Conversions API
- Mews → GA4Connecting Mews to GA4
Using Mews for bookings? How Mews bookings get tracked end to end
RELATED GUIDES
Where Mews → PostHog fits in the rest of your tracking
- Bookassist → PostHogConnecting Bookassist to PostHog
- Guesty → PostHogConnecting Guesty to PostHog
- Uplisting → PostHogConnecting Uplisting to PostHog
- Mews → MixpanelConnecting Mews to Mixpanel
- Mews → AmplitudeConnecting Mews to Amplitude
- HotelsConversion tracking for hotels, built around the direct booking
- Beds24 → PostHogConnecting Beds24 to PostHog
- HotelRunner → PostHogConnecting HotelRunner to PostHog
Free · 30 min
Get Mews and PostHog joined properly
Free30 minutesNo obligation
