Skip to main content
ServiceTitan → PostHogIntegration guide

Connecting ServiceTitan to PostHog

ServiceTitan is the system of record for mid-to-large home services operations, and it knows the revenue on every job. 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 ServiceTitan job 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

PostHog on a contractor site: booking funnels tied to invoiced jobs

Use PostHog to find where online bookings drop out, checking first that ServiceTitan's scheduler isn't a cross-domain iframe. Identify visitors at the contact step, store the distinct_id in a ServiceTitan customer custom field, and capture a server-side event at invoicing with job number as stable identifier, business unit and invoiced value. Mask replay on contact fields.

PostHog earns its place on a ServiceTitan business for one specific question: where people drop out of online booking. Funnels and session replay show whether visitors abandon at the ZIP check, the time-slot picker or the contact step. That only works if the booking flow is on a page PostHog can see. If you embed ServiceTitan's online scheduler, check whether it renders inside an iframe on another domain; if it does, PostHog sees the click that opened it and nothing after.

To close the loop to revenue, identify the visitor at the moment they submit their phone number and email, carry the PostHog distinct_id into the booking, and save it on the ServiceTitan customer in a custom field. When the job invoices, capture a server-side event with that distinct_id, the job number, business unit and invoiced value. Pass the job number as a stable event identifier, so a retried poll of the ServiceTitan API does not record the same job twice.

Keep the scope honest. Call-originated jobs, which are most of them, never touch PostHog, so its revenue figure covers web bookings only. Turn on replay masking for the contact step before going live, because the address and phone fields are exactly what replay would otherwise record.

ServiceTitan → PostHog · what breaks

Why this join usually fails — ServiceTitan → PostHog

  1. 01

    The distinct_id never reaches ServiceTitan

    The identifier has to reach the customer record, not just the call. ServiceTitan's own call tracking captures the call; connecting it to the job that eventually invoices is the step that gets missed.

  2. 02

    Rich data that never leaves the building

    ServiceTitan knows the job revenue and its own attribution reporting is good — and it sends none of it to your ad platforms, so bidding never learns which jobs actually paid.

  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.

ServiceTitan → PostHog · the fix

What working looks like — ServiceTitan → PostHog

  • The distinct_id on every job

  • Conversions arriving in PostHog

    The event lands on the person profile and becomes available in insights, funnels and session replay.

  • Reconciled against the source

ServiceTitan → PostHog · architecture

How ServiceTitan and PostHog actually connect

  1. 1

    ServiceTitan holds the truth

    ServiceTitan distinguishes booked, dispatched, completed and invoiced. Only the last is money — a dispatched truck that ended in a no-charge callback cost you and earned nothing.

  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 ServiceTitan job.

  4. 4

    The event source decides reliability

    Poll or subscribe for invoiced jobs and send with the invoiced value, job type and business unit. One job with three visits is one conversion, not three.

  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.

ServiceTitan → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the job

  • Sent from the ServiceTitan API on job invoiced

  • 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 identifier has to reach the customer record, not just the call. ServiceTitan's own call tracking captures the call; connecting it to the job that eventually invoices is the step that gets missed.

  • Sent from the browser

    ServiceTitan knows the job revenue and its own attribution reporting is good — and it sends none of it to your ad platforms, so bidding never learns which jobs actually paid.

  • 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

ServiceTitan → PostHog · diagnose

Diagnostic order — ServiceTitan → PostHog

  1. 01

    Count jobs carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Open a recent invoiced job and look for the identifier

    On the customer record. This one check is the whole build in miniature.

  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.

ServiceTitan → PostHog · prove

How it gets proven — ServiceTitan → PostHog

Source of truth

ServiceTitan's completed and invoiced jobs by completion date, at their invoiced values.

  • The distinct_id confirmed present on a live job.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • A multi-visit job confirmed to produce exactly one conversion.

ServiceTitan → PostHog · free audit

What we check in the free audit

  • Count jobs carrying the distinct_id
  • Follow one real conversion end to end
  • Open a recent invoiced job and look for the identifier
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

ServiceTitan's completed and invoiced jobs by completion date, at their invoiced values.

Get my free conversion tracking audit

Free30 minutesNo obligation

ServiceTitan → PostHog · when not to buy

When you don't need this — ServiceTitan → PostHog

  • Measure identifier coverage yourself first — pull your last hundred jobs and count how many carry the distinct_id.
  • If your business units and job types are applied inconsistently, fix that first — every conversion value depends on them.
  • 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.

ServiceTitan → PostHog · what we deliver

What gets built — ServiceTitan → PostHog

  • Identifier capture into ServiceTitan

    Store the click identifier in a custom field on the ServiceTitan customer record, so repeat jobs from the same customer trace back to the original acquisition.

  • Event source: the ServiceTitan API on job invoiced

    Poll or subscribe for invoiced jobs and send with the invoiced value, job type and business unit. One job with three visits is one conversion, not three.

  • 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

    Warranty callbacks and credits should not count as new revenue, and excluding them keeps the number honest.

Written guarantee

95%+ tracking accuracy

Measured against ServiceTitan's completed and invoiced jobs by completion date, at their invoiced values.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

ServiceTitan → PostHog questions, answered

Only if the widget renders on your own page. If it loads in an iframe from another domain, PostHog records the visitor opening it and nothing inside it.

Free · 30 min

Get ServiceTitan and PostHog joined properly

Free30 minutesNo obligation