Connecting Marchex to PostHog
Marchex sits with enterprises running calls across many locations, where the useful question is not whether the phone rang but which branch handled it and how. 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 Marchex call 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
Marchex calls in PostHog: from location page to answered call
Capture PostHog's distinct_id into the Marchex number session, then send qualifying calls back through the capture API on the same person, named by outcome such as appointment or unanswered, with the branch as a property. Leave transcripts out. It pays off when location pages and booking flows matter; listing and call-only-ad calls stay invisible.
PostHog's distinct_id lives in the browser of whoever viewed the location page, and Marchex's DNI session is created in that same browser when the tracking number is swapped in. Capture the distinct_id into the DNI session, and a qualifying call can be sent back through the capture API as an event on the same person, so a funnel can run from landing page through location finder to an answered call. Confirm whether your Marchex setup returns custom session values on the call record.
Name the event for the outcome, not the ring. A call classified as an appointment or a sale is a different event from one that went unanswered, and the funnel should show both so the web team can see where callers drop and the operations team can see which branches lose them. Put the branch on the event as a property. Leave transcripts out: session replay already holds the web behavior, and pairing it with a call recording in one tool is more personal data than anyone needs.
This earns its keep when the website does real work, with location pages, booking flows or quote tools, and the team wants to know which page versions produce calls. If most calls come from business listings or call-only ads with no site visit, PostHog will only ever see a minority of them.
Marchex → PostHog · what breaks
Why this join usually fails — Marchex → PostHog
- 01
The distinct_id never reaches Marchex
Number insertion has to be maintained across many location pages, and a single stale cached number sends a whole branch's calls to the wrong pool.
- 02
Unanswered calls counted as leads
At multi-location scale, a share of calls ring out or hit hold and abandon. Those are campaign spend converted into a bad customer experience, and they sit in the conversion count looking like success.
- 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.
Marchex → PostHog · the fix
What working looks like — Marchex → PostHog
The distinct_id on every call
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
Marchex → PostHog · architecture
How Marchex and PostHog actually connect
- 1
Marchex holds the truth
In multi-location businesses a national campaign performs very differently by branch, and a pooled call count hides that entirely — including the branches that are not answering.
- 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 Marchex call.
- 4
The event source decides reliability
Send qualifying calls per location with the outcome, not a national total.
- 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.
Marchex → PostHog · normal or broken
Working vs. broken, side by side — Marchex → PostHog
Normal, not a fault
The distinct_id present on the call
Sent from the Marchex call 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
Number insertion has to be maintained across many location pages, and a single stale cached number sends a whole branch's calls to the wrong pool.
Sent from the browser
At multi-location scale, a share of calls ring out or hit hold and abandon. Those are campaign spend converted into a bad customer experience, and they sit in the conversion count looking like success.
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
Marchex → PostHog · diagnose
Diagnostic order — Marchex → PostHog
- 01
Count calls carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Measure answer rate and abandonment by location
Frequently the largest available improvement, and it is an operations fix rather than a media one.
- 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.
Marchex → PostHog · prove
How it gets proven — Marchex → PostHog
Source of truth
Marchex calls by location, classified by outcome and joined to the local transaction.
- The distinct_id confirmed present on a live call.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- Answered qualifying calls reconciled per location against imported conversions.
Marchex → PostHog · free audit
What we check in the free audit
- Count calls carrying the distinct_id
- Follow one real conversion end to end
- Measure answer rate and abandonment by location
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Marchex calls by location, classified by outcome and joined to the local transaction.
Free30 minutesNo obligation
Marchex → PostHog · when not to buy
When you don't need this — Marchex → PostHog
- Measure identifier coverage yourself first — pull your last hundred calls and count how many carry the distinct_id.
- Single-location businesses do not need per-location provisioning and a simpler call-tracking product will do.
- 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.
Marchex → PostHog · what we deliver
What gets built — Marchex → PostHog
Identifier capture into Marchex
Provision numbers per location, verify insertion on every location page, and join the call to the local system that records the outcome.
Event source: the Marchex call record
Send qualifying calls per location with the outcome, not a national total.
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
Reclassified calls correct.
Written guarantee
95%+ tracking accuracy
Measured against Marchex calls by location, classified by outcome and joined to the local transaction.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Marchex → PostHog questions, answered
Store PostHog's distinct_id on the Marchex DNI session when the number is shown, then post qualifying calls to the capture API with that distinct_id, the outcome and the location.
Calls that never involved a website session, from call-only ads, business listings or printed numbers, have no distinct_id to join to. That share is structural, not a bug.
Almost always because the distinct_id never reached the Marchex call. Number insertion has to be maintained across many location pages, and a single stale cached number sends a whole branch's calls to the wrong pool. 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 Marchex call record. Send qualifying calls per location with the outcome, not a national total.
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 Marchex → PostHog
- Stripe → PostHogConnecting Stripe to PostHog
- PayPal → PostHogConnecting PayPal to PostHog
- Shopify → PostHogConnecting Shopify to PostHog
RELATED GUIDES
Where Marchex → PostHog fits in the rest of your tracking
- Twilio → PostHogConnecting Twilio to PostHog
- CallRail → PostHogConnecting CallRail to PostHog
- Invoca → PostHogConnecting Invoca to PostHog
- Marchex → GA4Connecting Marchex to GA4
- Marchex → AmplitudeConnecting Marchex to Amplitude
- HVACConversion tracking for HVAC, with service calls and installs counted separately
- CallTrackingMetrics → PostHogConnecting CallTrackingMetrics to PostHog
- Aircall → PostHogConnecting Aircall to PostHog
Free · 30 min
Get Marchex and PostHog joined properly
Free30 minutesNo obligation
