Skip to main content
CallRail → PostHogIntegration guide

Connecting CallRail to PostHog

CallRail knows which call came from which visit, and for phone-led businesses the call is the conversion. 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 CallRail call record 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

CallRail calls in PostHog funnels on the same distinct_id

Store PostHog's distinct_id on the CallRail session when the number swaps, if your plan supports custom session data. From the post-call webhook, capture a call event with that distinct_id, the call's own timestamp, duration, source and qualification, and a UUID derived from the CallRail call ID. Flag sessionless calls separately, and keep recordings and transcripts out of properties.

PostHog's value here is putting the call into the same funnel as the pages that preceded it: viewed pricing, viewed the service area page, called. That needs the PostHog distinct_id stored on the CallRail session at the moment the number is swapped. Read it from the PostHog library on the page and pass it into CallRail; check whether your plan supports custom session data or a callback for this.

From CallRail's post-call webhook, capture a call event with that distinct_id, the call's own timestamp rather than the send time, and properties for duration, tracking source and qualification. Derive the event UUID from the CallRail call ID so a retried webhook does not duplicate. Calls with no session, such as Google Business Profile or printed numbers, can still be captured, but flag them or give them a separate identity scheme so they do not inflate funnel conversion for anonymous visitors.

If PostHog is self-hosted, its ingestion endpoint must accept requests from wherever the webhook handler runs, not only from browsers. Keep recordings and transcripts out of event properties; PostHog is your analytics, not a call archive.

CallRail → PostHog · what breaks

Why this join usually fails — CallRail → PostHog

  1. 01

    The distinct_id never reaches CallRail

    Dynamic number insertion has to run before the visitor dials. If the swap script is deferred, blocked by consent, or the visitor calls from a cached page, CallRail records the call but cannot tie it to the session, and the click identifier goes with it. Calls from the Google Business Profile or a printed number never had a session at all.

  2. 02

    Every call counts, including the wrong numbers

    Unfiltered call conversions teach the ad platform to find people who dial, not people who buy. A 12-second call is not a lead and should not be paid for as one.

  3. 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.

  4. 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.

CallRail → PostHog · the fix

What working looks like — CallRail → 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

CallRail → PostHog · architecture

How CallRail and PostHog actually connect

  1. 1

    CallRail holds the truth

    The call record carries duration, source, the tracking number, the keyword where available, and — critically — the session CallRail stitched it to. That session is what carries the click identifier.

  2. 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. 3

    The identifier is the bridge

    The distinct_id, captured at the visit and carried into the CallRail call record.

  4. 4

    The event source decides reliability

    Send after the call completes, filtered by duration or by the qualification your team applies. Sending on call start counts wrong numbers and hang-ups as conversions.

  5. 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.

CallRail → PostHog · normal or broken

Working vs. broken, side by side — CallRail → PostHog

Normal, not a fault

  • The distinct_id present on the call

  • Sent from the CallRail post-call 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

    Dynamic number insertion has to run before the visitor dials. If the swap script is deferred, blocked by consent, or the visitor calls from a cached page, CallRail records the call but cannot tie it to the session, and the click identifier goes with it. Calls from the Google Business Profile or a printed number never had a session at all.

  • Sent from the browser

    Unfiltered call conversions teach the ad platform to find people who dial, not people who buy. A 12-second call is not a lead and should not be paid for as one.

  • 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

CallRail → PostHog · diagnose

Diagnostic order — CallRail → PostHog

  1. 01

    Count calls carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check what share of calls have a session attached

    In CallRail, calls without a session cannot be attributed by anyone. That percentage is your real ceiling, and it is usually the number that ends the debate.

  4. 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.

  5. 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.

CallRail → PostHog · prove

How it gets proven — CallRail → PostHog

Source of truth

CallRail's own call log for the same window, filtered to the call qualification you count.

  • 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.
  • The duration or qualification threshold agreed in writing before anything is sent.

CallRail → PostHog · free audit

What we check in the free audit

  • Count calls carrying the distinct_id
  • Follow one real conversion end to end
  • Check what share of calls have a session attached
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

CallRail's own call log for the same window, filtered to the call qualification you count.

Get my free conversion tracking audit

Free30 minutesNo obligation

CallRail → PostHog · when not to buy

When you don't need this — CallRail → PostHog

  • Measure identifier coverage yourself first — pull your last hundred calls and count how many carry the distinct_id.
  • CallRail's own native integrations are genuinely decent for straightforward setups. If you only need calls into one destination and your qualification is just a duration threshold, use theirs — we will say so.
  • 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.

CallRail → PostHog · what we deliver

What gets built — CallRail → PostHog

  • Identifier capture into CallRail

    Confirm the number-swap script runs early and unconditionally on every page a paid visitor can land on, and that CallRail's session capture is receiving the click identifier from the URL.

  • Event source: the CallRail post-call webhook

    Send after the call completes, filtered by duration or by the qualification your team applies. Sending on call start counts wrong numbers and hang-ups as conversions.

  • 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

    There is nothing to reverse, but a call later marked unqualified should not have been counted — which is why the duration or qualification filter belongs before the send, not after.

Written guarantee

95%+ tracking accuracy

Measured against CallRail's own call log for the same window, filtered to the call qualification you count.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

CallRail → PostHog questions, answered

Capture PostHog's distinct_id on the CallRail session, then send a call event from the post-call webhook with that ID and the call timestamp.

Free · 30 min

Get CallRail and PostHog joined properly

Free30 minutesNo obligation