Connecting BILL to PostHog
BILL automates accounts payable and receivable, which means most of what flows through it is money going out — and none of that is a conversion under any definition. 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 BILL receivable 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
BILL payments in PostHog: use group analytics, not person events
Store your own account ID on the BILL customer and, when a received payment posts, update the PostHog company group with a paid flag and last payment amount from your backend. Avoid person-level BILL events. For timing, send a dated event under a system distinct_id with the group attached and a UUID from the BILL payment ID.
For a B2B product on PostHog, BILL answers a question PostHog cannot: which accounts actually pay. The natural home is group analytics — set a paid flag and last payment amount on the company group, so funnels and retention can be filtered by paying versus non-paying accounts.
The join is your own account ID. Product events carry your user and company IDs; BILL only knows its own customer ID. Store your account ID on the BILL customer record or keep a mapping table, then update the PostHog group from your backend when a received payment posts. Avoid person-level events from BILL: there is no distinct_id for the AP contact, so PostHog creates a new person who has done nothing in the product, and your conversion funnels gain phantom users.
Group properties are a snapshot, so to see timing — how long from first usage to first paid invoice — also send a dated event under a dedicated system distinct_id with the group attached, deriving the event UUID from the BILL payment ID so a re-run backfill does not duplicate. On self-hosted PostHog, invoice amounts now sit on your own infrastructure; restrict access as you would for finance data.
BILL → PostHog · what breaks
Why this join usually fails — BILL → PostHog
- 01
The distinct_id never reaches BILL
There is no browser session anywhere in an accounts-payable system, and receivables are created from contracts signed elsewhere.
- 02
Payables exported alongside receivables
It sounds too obvious to happen and it happens regularly, because both are payment records in the same system. The result is supplier payments counted as revenue, which inflates the total by whatever your cost base is.
- 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.
BILL → PostHog · the fix
What working looks like — BILL → PostHog
The distinct_id on every payment
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
BILL → PostHog · architecture
How BILL and PostHog actually connect
- 1
BILL holds the truth
Both are transactions with amounts and dates and both will export cheerfully into the same spreadsheet. Only one of them is revenue.
- 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 BILL receivable.
- 4
The event source decides reliability
Send received payments on customer invoices only, at the amount received.
- 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.
BILL → PostHog · normal or broken
Working vs. broken, side by side — BILL → PostHog
Normal, not a fault
The distinct_id present on the payment
Sent from the BILL receivable payment
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
There is no browser session anywhere in an accounts-payable system, and receivables are created from contracts signed elsewhere.
Sent from the browser
It sounds too obvious to happen and it happens regularly, because both are payment records in the same system. The result is supplier payments counted as revenue, which inflates the total by whatever your cost base is.
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
BILL → PostHog · diagnose
Diagnostic order — BILL → PostHog
- 01
Count payments carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Check the direction field on every record before importing anything
One column. Getting it wrong is not a small error, it is a sign-flip on a large share of the data.
- 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.
BILL → PostHog · prove
How it gets proven — BILL → PostHog
Source of truth
BILL receivables marked paid, strictly separated from payables.
- The distinct_id confirmed present on a live payment.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- Customer payments received reconciled against imported conversions, with payables demonstrably excluded.
BILL → PostHog · free audit
What we check in the free audit
- Count payments carrying the distinct_id
- Follow one real conversion end to end
- Check the direction field on every record before importing anything
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
BILL receivables marked paid, strictly separated from payables.
Free30 minutesNo obligation
BILL → PostHog · when not to buy
When you don't need this — BILL → PostHog
- Measure identifier coverage yourself first — pull your last hundred payments and count how many carry the distinct_id.
- If you use BILL only for payables, there is nothing here to attribute and no integration to build.
- 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.
BILL → PostHog · what we deliver
What gets built — BILL → PostHog
Identifier capture into BILL
Attribute at the CRM or contract stage and use BILL only to confirm the money actually arrived.
Event source: the BILL receivable payment
Send received payments on customer invoices only, at the amount received.
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
Reversed and disputed payments reverse.
Written guarantee
95%+ tracking accuracy
Measured against BILL receivables marked paid, strictly separated from payables.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
BILL → PostHog questions, answered
From your backend, update the PostHog company group when BILL records a received payment, matched on your own account ID. Check that group analytics is enabled on your plan.
They were captured with a distinct_id the product never used, such as the billing email. Update group properties instead, or use a dedicated system distinct_id.
Almost always because the distinct_id never reached the BILL receivable. There is no browser session anywhere in an accounts-payable system, and receivables are created from contracts signed elsewhere. 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 BILL receivable payment. Send received payments on customer invoices only, at the amount received.
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 BILL → PostHog
- Cal.com → PostHogConnecting Cal.com to PostHog
- Checkout.com → PostHogConnecting Checkout.com to PostHog
- BILL → Google AdsConnecting BILL to Google Ads
Using BILL for bookings? How BILL bookings get tracked end to end
RELATED GUIDES
Where BILL → PostHog fits in the rest of your tracking
- FreshBooks → PostHogConnecting FreshBooks to PostHog
- Harvest → PostHogConnecting Harvest to PostHog
- Xero → PostHogConnecting Xero to PostHog
- BILL → GA4Connecting BILL to GA4
- BILL → MixpanelConnecting BILL to Mixpanel
- Accounting and CPAConversion tracking for accounting firms, measured in engagements
- Wave → PostHogConnecting Wave to PostHog
- QuickBooks → PostHogConnecting QuickBooks to PostHog
Free · 30 min
Get BILL and PostHog joined properly
Free30 minutesNo obligation
