Connecting Donorbox to PostHog
Donorbox is donation forms for nonprofits, where the recurring donor is worth many times the one-off gift and the two arrive through the same form. 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 Donorbox donation 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
Donorbox to PostHog: where donors drop off before the embed
PostHog cannot see inside the Donorbox iframe, so pass its distinct_id into a custom form field and send a donation_completed event through the capture API, with amount and plan type, using the donation ID to build the event UUID. Fall back to email identification. The key finding is how many donors open the popup and close it.
PostHog is useful to a nonprofit for the part of the journey that happens before the gift: which stories people read, whether they open the donate modal, where they leave. It is blind at the most important moment. Session replay and autocapture do not see inside a cross-origin Donorbox iframe, so a recording shows the form appearing and then nothing until the donor leaves or lands on a thank-you page.
Close that gap server-side. Read the PostHog distinct_id on your page, pass it into the Donorbox form through a custom field if your form supports one, and when the donation is created send a donation_completed event through the capture API with that distinct_id, the amount, and whether it is a one-off or a recurring plan. Use the Donorbox donation ID to build the event UUID so a retried webhook does not create a second gift. If the distinct_id did not survive, identify by the donor's email and accept that pre-donation browsing will not be stitched.
Model the funnel as story view, form opened, donation completed, plan type. The most useful finding is usually how many people open the Donorbox popup and close it, a number Donorbox reports do not show and which tells you whether the ask, the default amounts or the monthly toggle is the problem.
Donorbox → PostHog · what breaks
Why this join usually fails — Donorbox → PostHog
- 01
The distinct_id never reaches Donorbox
The donation form frequently renders in a Donorbox-hosted embed or popup, which does not share your page's storage.
- 02
Recurring donors valued at one month
It makes the most valuable acquisition you can achieve look like your smallest, and it steers campaigns toward one-off appeals that produce a single gift and no relationship.
- 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.
Donorbox → PostHog · the fix
What working looks like — Donorbox → PostHog
The distinct_id on every donation
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
Donorbox → PostHog · architecture
How Donorbox and PostHog actually connect
- 1
Donorbox holds the truth
A monthly donor at twenty pounds is worth far more than a hundred-pound single gift and looks smaller in every report that counts donation value at the moment it arrives.
- 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 Donorbox donation.
- 4
The event source decides reliability
Send one-off gifts at their amount and recurring plans at an annualized value you can defend from your own retention data.
- 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.
Donorbox → PostHog · normal or broken
Working vs. broken, side by side — Donorbox → PostHog
Normal, not a fault
The distinct_id present on the donation
Sent from the Donorbox donation 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
The donation form frequently renders in a Donorbox-hosted embed or popup, which does not share your page's storage.
Sent from the browser
It makes the most valuable acquisition you can achieve look like your smallest, and it steers campaigns toward one-off appeals that produce a single gift and no relationship.
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
Donorbox → PostHog · diagnose
Diagnostic order — Donorbox → PostHog
- 01
Count donations carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Compare the value of a recurring donor over a year against a single gift
The gap is usually large enough to change which campaigns get funded.
- 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.
Donorbox → PostHog · prove
How it gets proven — Donorbox → PostHog
Source of truth
Donorbox donations by date, split into one-off gifts and recurring plans.
- The distinct_id confirmed present on a live donation.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- Donations reconciled by type against imported conversions, with recurring plans valued on stated retention.
Donorbox → PostHog · free audit
What we check in the free audit
- Count donations carrying the distinct_id
- Follow one real conversion end to end
- Compare the value of a recurring donor over a year against a single gift
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Donorbox donations by date, split into one-off gifts and recurring plans.
Free30 minutesNo obligation
Donorbox → PostHog · when not to buy
When you don't need this — Donorbox → PostHog
- Measure identifier coverage yourself first — pull your last hundred donations and count how many carry the distinct_id.
- If you only take one-off gifts, this is a straightforward payment integration and the recurring complexity does not apply.
- 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.
Donorbox → PostHog · what we deliver
What gets built — Donorbox → PostHog
Identifier capture into Donorbox
Capture on your own domain before the embed loads and pass the identifier through the form's supported fields.
Event source: the Donorbox donation record
Send one-off gifts at their amount and recurring plans at an annualized value you can defend from your own retention data.
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
Refunds and cancelled recurring plans reverse.
Written guarantee
95%+ tracking accuracy
Measured against Donorbox donations by date, split into one-off gifts and recurring plans.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Donorbox → PostHog questions, answered
No. The form loads in a cross-origin iframe, which replay does not capture, so the completion has to be sent from your server.
Pass the distinct_id into the form before it loads and send it back with the donation. Without that, email is the fallback, and only works if you already identified that person by email.
Almost always because the distinct_id never reached the Donorbox donation. The donation form frequently renders in a Donorbox-hosted embed or popup, which does not share your page's storage. 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 Donorbox donation record. Send one-off gifts at their amount and recurring plans at an annualized value you can defend from your own retention data.
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 Donorbox → PostHog
- Stripe → PostHogConnecting Stripe to PostHog
- PayPal → PostHogConnecting PayPal to PostHog
- Shopify → PostHogConnecting Shopify to PostHog
RELATED GUIDES
Where Donorbox → PostHog fits in the rest of your tracking
- Givebutter → PostHogConnecting Givebutter to PostHog
- Neon CRM → PostHogConnecting Neon CRM to PostHog
- Fundraise Up → PostHogConnecting Fundraise Up to PostHog
- Donorbox → GA4Connecting Donorbox to GA4
- Donorbox → Adobe AnalyticsConnecting Donorbox to Adobe Analytics
- Food banksConversion tracking for food banks, measured in what actually arrives
- Classy → PostHogConnecting Classy to PostHog
- Bloomerang → PostHogConnecting Bloomerang to PostHog
Free · 30 min
Get Donorbox and PostHog joined properly
Free30 minutesNo obligation
