Connecting LiveChat to Matomo
LiveChat is agent-operated chat for mid-market companies, and its built-in goal tracking makes it unusually easy to create a conversion action that measures agent activity instead of revenue. Matomo can be self-hosted with no third party in the chain, which makes it the one analytics destination where the data genuinely never leaves infrastructure you control. The join between them succeeds or fails on one thing: whether the first-party visitor ID reaches the LiveChat goal before the conversion happens, because Matomo can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
LiveChat to Matomo: tie agent-closed sales back to the visit
Send the order to Matomo from your order system through the HTTP Tracking API with the visitor ID read on page load and set as a LiveChat session variable, so agent-closed sales attribute to the original visit. Record chat started and pre-chat submissions from the widget API as events. Don't mirror the LiveChat goal or copy chat PII.
Matomo sees the page, not the conversation. Its tracker runs on your domain, while the LiveChat widget runs in its own frame, so in-chat activity is invisible unless you listen to the widget's JavaScript API callbacks and record them yourself as Matomo events (chat started, pre-chat form submitted). Those events are behavioral context. The ecommerce order should still come from your order system through the Matomo HTTP Tracking API, carrying the same visitor ID as the session that started the chat.
That is the useful part of this pair. Read the Matomo visitor ID on page load and set it as a LiveChat session variable, so when an agent closes a sale by quote or invoice days later, the order record can carry the original visitor ID and Matomo attributes it to the visit and campaign that brought the person in. Without that, chat-closed revenue shows up in Matomo as unattributed or not at all.
Do not create a Matomo goal that mirrors the LiveChat goal; you will end up with two numbers named the same thing that disagree. Keep transcript text, names and emails out of custom dimensions. Self-hosting only keeps data under your control if you do not copy chat PII into it.
LiveChat → Matomo · what breaks
Why this join usually fails — LiveChat → Matomo
- 01
The first-party visitor ID never reaches LiveChat
The chat window is a third-party frame, and chats frequently continue across sessions and devices while the ticket stays open.
- 02
Agent-reported sales as a bidding signal
Agents mark goals inconsistently, under time pressure, and sometimes according to how they are compensated. That is a reasonable management metric and a terrible thing to hand an automated bidding algorithm.
- 03
Owning the pipeline means owning the outage
The advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.
- 04
Nothing reconciles afterwards
Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.
LiveChat → Matomo · the fix
What working looks like — LiveChat → Matomo
The first-party visitor ID on every goal
Conversions arriving in Matomo
The event lands in your own database and is queryable directly, including the raw log, which most analytics products do not expose.
Reconciled against the source
LiveChat → Matomo · architecture
How LiveChat and Matomo actually connect
- 1
LiveChat holds the truth
LiveChat's own goal and sales-tracking features are agent-reported. They are useful for coaching and unsuitable as an advertising conversion source, because a human decides whether they fire.
- 2
Matomo needs a click to match
The site ID, the visitor identifier and the event or ecommerce order. Self-hosted instances additionally need the tracker endpoint reachable and the database keeping up, which hosted tools do not fail at.
- 3
The identifier is the bridge
The first-party visitor ID, captured at the visit and carried into the LiveChat goal.
- 4
The event source decides reliability
Send the settled commercial outcome, not the agent-marked goal.
- 5
Deduplication at the destination
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
LiveChat → Matomo · normal or broken
Working vs. broken, side by side — LiveChat → Matomo
Normal, not a fault
The first-party visitor ID present on the goal
Sent from your order or CRM record
Deduplicated correctly
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Reconciles with the source
Actually broken
The first-party visitor ID missing on most records
The chat window is a third-party frame, and chats frequently continue across sessions and devices while the ticket stays open.
Sent from the browser
Agents mark goals inconsistently, under time pressure, and sometimes according to how they are compensated. That is a reasonable management metric and a terrible thing to hand an automated bidding algorithm.
Counted twice, or not at all
The advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.
Nobody has reconciled it
LiveChat → Matomo · diagnose
Diagnostic order — LiveChat → Matomo
- 01
Count goals carrying the first-party visitor ID
- 02
Follow one real conversion end to end
- 03
Compare agent-marked goals against settled revenue
The gap is usually wide enough to settle the argument about which one should be the conversion.
- 04
Check tracker reachability and database lag before debugging any tag
On self-hosted analytics the answer is infrastructure more often than instrumentation.
- 05
Read the match rate, not the success message
Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.
LiveChat → Matomo · prove
How it gets proven — LiveChat → Matomo
Source of truth
Your order or CRM system, joined to the chat session by the agent-recorded identifier or the customer's email.
- The first-party visitor ID confirmed present on a live goal.
- Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
- Settled orders reconciled against imported conversions; agent-marked goals excluded.
LiveChat → Matomo · free audit
What we check in the free audit
- Count goals carrying the first-party visitor ID
- Follow one real conversion end to end
- Compare agent-marked goals against settled revenue
- Check tracker reachability and database lag before debugging any tag
- Read the match rate, not the success message
Checked against
Your order or CRM system, joined to the chat session by the agent-recorded identifier or the customer's email.
Free30 minutesNo obligation
LiveChat → Matomo · when not to buy
When you don't need this — LiveChat → Matomo
- Measure identifier coverage yourself first — pull your last hundred goals and count how many carry the first-party visitor ID.
- If LiveChat is purely a support channel, no integration is warranted.
- If you have no privacy or ownership requirement and no team to run it, a hosted product removes the only real cost of this one.
LiveChat → Matomo · what we deliver
What gets built — LiveChat → Matomo
Identifier capture into LiveChat
Push the identifier in as a custom variable at load. Expect multi-session conversations, and persist against the customer rather than the session.
Event source: your order or CRM record
Send the settled commercial outcome, not the agent-marked goal.
Dispatch to Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
Reversals where they exist
Refunds and cancelled deals reverse.
Written guarantee
95%+ tracking accuracy
Measured against Your order or CRM system, joined to the chat session by the agent-recorded identifier or the customer's email.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
LiveChat → Matomo questions, answered
Yes, as Matomo events you fire from the LiveChat widget's JavaScript API callbacks on your page. Matomo cannot see inside the chat frame on its own.
Store the Matomo visitor ID as a LiveChat session variable, copy it onto the order when the sale closes, and send the order through the HTTP Tracking API with that visitor ID and a unique order ID.
Almost always because the first-party visitor ID never reached the LiveChat goal. The chat window is a third-party frame, and chats frequently continue across sessions and devices while the ticket stays open. Measure coverage before debugging the dispatch.
Matomo sets its own first-party cookie and, when self-hosted on your domain, is not a third-party request at all. That means ad blockers and browser tracking-prevention affect it far less than a hosted analytics tag — one of the few genuine measurement advantages available under current privacy conditions.
Your order or CRM record. Send the settled commercial outcome, not the agent-marked goal.
Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.
More on LiveChat → Matomo
- LiveChat → Google AdsConnecting LiveChat to Google Ads
- LiveChat → MetaConnecting LiveChat to Meta Conversions API
- LiveChat → GA4Connecting LiveChat to GA4
RELATED GUIDES
Where LiveChat → Matomo fits in the rest of your tracking
- Tidio → MatomoConnecting Tidio to Matomo
- Gorgias → MatomoConnecting Gorgias to Matomo
- Tawk.to → MatomoConnecting Tawk.to to Matomo
- LiveChat → GA4Connecting LiveChat to GA4
- LiveChat → AmplitudeConnecting LiveChat to Amplitude
- B2BConversion tracking for B2B, from first touch to closed-won
- Kustomer → MatomoConnecting Kustomer to Matomo
- Crisp → MatomoConnecting Crisp to Matomo
Free · 30 min
Get LiveChat and Matomo joined properly
Free30 minutesNo obligation
