Skip to main content
Aircall → PostHogIntegration guide

Connecting Aircall to PostHog

Aircall is a cloud phone system, which means it holds every inbound call including the ones that were never leads. 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 Aircall 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

Aircall calls as PostHog events on the same person

Store the visitor's PostHog distinct_id against the number-insertion assignment. When Aircall's call-ended webhook arrives, capture one call event on that distinct_id with duration, direction and tags, using the Aircall call ID as event UUID, and record qualification as a property. Never invent IDs for non-visitors or store caller numbers.

PostHog lets a phone call sit in the same funnel as the pageviews before it, which no ad platform will show you. The number-insertion script reads the visitor's PostHog distinct_id and stores it against the displayed number. When Aircall's call-ended webhook arrives, your server captures a call event on that distinct_id with duration, direction and tags as properties, and the call appears in that person's timeline and session history.

Use the Aircall call ID as the event UUID. Aircall can retry webhooks, and tags are often added after the call ends, which tempts teams to send a second event. Send one event per call and update a person or group property for the qualification outcome, or send a distinct tagged event that references the same call ID, so a funnel step does not count the call twice.

Two traps are specific here. First, a caller who never visited the site has no distinct_id; do not invent one, or PostHog fills with anonymous persons that are really just phone numbers. Second, the caller's number is personal data, and setting it as a person property puts it in every export and replay of that profile. Keep it in Aircall and the CRM and give PostHog the call facts only. On self-hosted PostHog, confirm the webhook handler's capture requests reach your ingestion endpoint from inside your network.

Aircall → PostHog · what breaks

Why this join usually fails — Aircall → PostHog

  1. 01

    The distinct_id never reaches Aircall

    Aircall is a phone system rather than a marketing tool, so it has no session concept of its own. Tying a call to a click requires dynamic number insertion in front of it, and if the swap script has not run when the visitor dials, the call is recorded with no attribution possible.

  2. 02

    Every call looks the same from outside

    Aircall records the fact of a call. Whether it was a lead, a supplier or a wrong number is only knowable from tags, and unfiltered call conversions teach bidding to find people who dial.

  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.

Aircall → PostHog · the fix

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

Aircall → PostHog · architecture

How Aircall and PostHog actually connect

  1. 1

    Aircall holds the truth

    The call record carries duration, direction, the number dialled and any tags your team applies. Those tags are what turn a call log into a conversion source, and they only exist if someone applies them consistently.

  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 Aircall call record.

  4. 4

    The event source decides reliability

    Send after the call completes, filtered by duration and by the tags your team applies. Sending every call counts wrong numbers, suppliers and existing customers 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.

Aircall → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the call

  • Sent from the Aircall call-ended 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

    Aircall is a phone system rather than a marketing tool, so it has no session concept of its own. Tying a call to a click requires dynamic number insertion in front of it, and if the swap script has not run when the visitor dials, the call is recorded with no attribution possible.

  • Sent from the browser

    Aircall records the fact of a call. Whether it was a lead, a supplier or a wrong number is only knowable from tags, and unfiltered call conversions teach bidding to find people who dial.

  • 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

Aircall → PostHog · diagnose

Diagnostic order — Aircall → 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 carry a qualifying tag

    If tagging is inconsistent, the conversion feed inherits that inconsistency and no downstream fix helps.

  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.

Aircall → PostHog · prove

How it gets proven — Aircall → PostHog

Source of truth

Aircall's call log for the same window, filtered to the qualification your team applies.

  • 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 and tag filter agreed in writing before anything is sent.

Aircall → 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 carry a qualifying tag
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Aircall's call log for the same window, filtered to the qualification your team applies.

Get my free conversion tracking audit

Free30 minutesNo obligation

Aircall → PostHog · when not to buy

When you don't need this — Aircall → PostHog

  • Measure identifier coverage yourself first — pull your last hundred calls and count how many carry the distinct_id.
  • If your team does not tag calls consistently, fix that first — it is an operational habit and every number here depends on it.
  • 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.

Aircall → PostHog · what we deliver

What gets built — Aircall → PostHog

  • Identifier capture into Aircall

    Run number insertion in front of Aircall so each session sees a distinct number, and store the click identifier against that number assignment server-side.

  • Event source: the Aircall call-ended webhook

    Send after the call completes, filtered by duration and by the tags your team applies. Sending every call counts wrong numbers, suppliers and existing customers 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

    Nothing to reverse, but a call later tagged unqualified should not have counted — which is why the filter belongs before the send.

Written guarantee

95%+ tracking accuracy

Measured against Aircall's call log for the same window, filtered to the qualification your team applies.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Aircall → PostHog questions, answered

Store the visitor's distinct_id against a dynamically inserted number, then capture a call event on that distinct_id when Aircall's call-ended webhook fires.

Free · 30 min

Get Aircall and PostHog joined properly

Free30 minutesNo obligation