Connecting Tawk.to to PostHog
Tawk.to is free, which is why it is everywhere on small business sites, and free means the integration surface is thin — most of the work here is deciding what not to send. 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 Tawk.to chat 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
Tawk.to chats in PostHog funnels with one distinct_id
Capture chat started and pre-chat submitted as PostHog events from Tawk.to's JavaScript API callbacks so they carry the visitor's existing distinct_id. Set that distinct_id as a Tawk.to visitor attribute so webhooks return it for agent tags, and capture the booked job with the same distinct_id and a stable UUID from the job number to prevent double counting.
PostHog's browser library and the Tawk.to JavaScript API run in the same page, so the clean design is to capture chat started and pre-chat submitted as PostHog events from the Tawk.to callbacks. They then carry the visitor's existing distinct_id, and you can build the funnel most Tawk.to users actually want: which pages lead to chats, and whether people who chat book more than people who don't.
Session replay will show the chat bubble opening but not the conversation; PostHog does not record inside a cross-origin frame, and you shouldn't want it to, since visitors type phone numbers and addresses there. If you need the topic, have agents tag chats in Tawk.to and send the tag server-side later. To make that join, set the PostHog distinct_id as a Tawk.to visitor attribute when the widget loads so the webhook carries it back.
On a self-hosted instance, the browser events go to your own endpoint, which ad blockers leave alone more often than a vendor's. When the booked job arrives from your scheduling tool, capture it with the same distinct_id and a stable UUID derived from the job number, so a retried batch does not double the bookings.
Tawk.to → PostHog · what breaks
Why this join usually fails — Tawk.to → PostHog
- 01
The distinct_id never reaches Tawk.to
The widget is a third-party frame with no access to your page storage, and the free tier's attribute support is limited.
- 02
A free tool asked to do a system-of-record job
Tawk.to is genuinely good at what it does and it is not a CRM. Building attribution on top of a chat log will produce numbers nobody can reconcile in three months.
- 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.
Tawk.to → PostHog · the fix
What working looks like — Tawk.to → PostHog
The distinct_id on every chat
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
Tawk.to → PostHog · architecture
How Tawk.to and PostHog actually connect
- 1
Tawk.to holds the truth
On the small service businesses that use Tawk.to most, the actual conversion is a phone call or a booked job, and the chat is one step on the way there.
- 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 Tawk.to chat.
- 4
The event source decides reliability
Send the booked job or the qualified enquiry. Chat volume stays in Tawk.to.
- 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.
Tawk.to → PostHog · normal or broken
Working vs. broken, side by side — Tawk.to → PostHog
Normal, not a fault
The distinct_id present on the chat
Sent from your booking or enquiry 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
The widget is a third-party frame with no access to your page storage, and the free tier's attribute support is limited.
Sent from the browser
Tawk.to is genuinely good at what it does and it is not a CRM. Building attribution on top of a chat log will produce numbers nobody can reconcile in three months.
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
Tawk.to → PostHog · diagnose
Diagnostic order — Tawk.to → PostHog
- 01
Count chats carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Identify where the actual conversion is recorded
For most Tawk.to users it is a calendar, a notebook or a phone. That is where the integration has to start.
- 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.
Tawk.to → PostHog · prove
How it gets proven — Tawk.to → PostHog
Source of truth
Your own booking, order or enquiry record. Tawk.to is a conversation log, not a system of record.
- The distinct_id confirmed present on a live chat.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- Booked jobs reconciled against imported conversions, with chat volume reported separately.
Tawk.to → PostHog · free audit
What we check in the free audit
- Count chats carrying the distinct_id
- Follow one real conversion end to end
- Identify where the actual conversion is recorded
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Your own booking, order or enquiry record. Tawk.to is a conversation log, not a system of record.
Free30 minutesNo obligation
Tawk.to → PostHog · when not to buy
When you don't need this — Tawk.to → PostHog
- Measure identifier coverage yourself first — pull your last hundred chats and count how many carry the distinct_id.
- Very small operations should measure calls and bookings and leave the chat widget out of the ad account entirely.
- 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.
Tawk.to → PostHog · what we deliver
What gets built — Tawk.to → PostHog
Identifier capture into Tawk.to
Set visitor attributes where the API allows and accept that on this platform the join is often manual — matched on the email or phone number the visitor typed.
Event source: your booking or enquiry record
Send the booked job or the qualified enquiry. Chat volume stays in Tawk.to.
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
Cancelled jobs reverse.
Written guarantee
95%+ tracking accuracy
Measured against Your own booking, order or enquiry record. Tawk.to is a conversation log, not a system of record.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Tawk.to → PostHog questions, answered
No, and that is desirable. Session replay does not capture the cross-origin chat frame; send agent tags server-side if you need the topic.
Set the PostHog distinct_id as a Tawk.to visitor attribute when the widget loads, then read it from the webhook and capture events with it.
Almost always because the distinct_id never reached the Tawk.to chat. The widget is a third-party frame with no access to your page storage, and the free tier's attribute support is limited. 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 booking or enquiry record. Send the booked job or the qualified enquiry. Chat volume stays in Tawk.to.
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 Tawk.to → PostHog
- Tawk.to → Google AdsConnecting Tawk.to to Google Ads
- Tawk.to → MetaConnecting Tawk.to to Meta Conversions API
- Tawk.to → GA4Connecting Tawk.to to GA4
RELATED GUIDES
Where Tawk.to → PostHog fits in the rest of your tracking
- Help Scout → PostHogConnecting Help Scout to PostHog
- Crisp → PostHogConnecting Crisp to PostHog
- Kustomer → PostHogConnecting Kustomer to PostHog
- Tawk.to → MatomoConnecting Tawk.to to Matomo
- Tawk.to → MixpanelConnecting Tawk.to to Mixpanel
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- Freshdesk → PostHogConnecting Freshdesk to PostHog
- Gorgias → PostHogConnecting Gorgias to PostHog
Free · 30 min
Get Tawk.to and PostHog joined properly
Free30 minutesNo obligation
