Skip to main content
Classy → PostHogIntegration guide

Connecting Classy to PostHog

Classy runs campaign and peer-to-peer fundraising, where a large share of donations come from a supporter's friends — people your advertising never touched and never could. 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 Classy 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

Classy gifts in PostHog: one distinct_id from portal to donation

Pass the PostHog distinct_id on the donate link and store it on the Classy transaction, or join on the Classy email for logged-in supporters. Send a donation event to the capture API from a webhook or scheduled pull, with amount, campaign, the transaction ID as event UUID, and properties for fundraiser-page and recurring-installment gifts.

PostHog makes sense for a nonprofit with its own product surface, such as a volunteer portal, a learning hub or an app supporters log into, where you want to know whether engaged users go on to give. The donation, though, happens on a Classy-hosted page your PostHog snippet does not run on, so the funnel stops at the donate click unless you send the gift back yourself.

Pass the distinct_id on the donate link and store it on the Classy transaction, then send a donation event to the capture API from a Classy webhook or a scheduled API pull, with amount, campaign and the transaction ID as the event UUID. Where a supporter is logged into your portal, your own user ID is the distinct_id, and you can join on the email from the Classy record instead, which survives the domain hop without any URL work.

Add one property for whether a fundraiser page produced the gift and another for whether it was a recurring installment. If you attach gifts made through a supporter's fundraiser page to that supporter's profile, they will look like the most valuable user in the portal, which is the misread the fundraiser flag exists to prevent. Send recurring installments as a separate event, so cohort retention charts show donor retention, not card billing.

Classy → PostHog · what breaks

Why this join usually fails — Classy → PostHog

  1. 01

    The distinct_id never reaches Classy

    Donation pages are Classy-hosted, and peer-to-peer pages are shared person to person with no identifier anywhere in the chain.

  2. 02

    Peer-to-peer fundraising credited to media

    A successful peer-to-peer campaign can multiply donation volume in a fortnight. If it is pooled with direct giving, the ad account takes credit for a community's generosity and the following quarter looks like a collapse.

  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.

Classy → PostHog · the fix

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

Classy → PostHog · architecture

How Classy and PostHog actually connect

  1. 1

    Classy holds the truth

    Peer-to-peer money is raised by your supporters, not bought by your media. It belongs to the fundraiser who raised it and crediting it to an acquisition campaign is simply false.

  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 Classy donation.

  4. 4

    The event source decides reliability

    Send direct donations at their amount, with the campaign attached so appeals can be compared.

  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.

Classy → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the donation

  • Sent from the Classy 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

    Donation pages are Classy-hosted, and peer-to-peer pages are shared person to person with no identifier anywhere in the chain.

  • Sent from the browser

    A successful peer-to-peer campaign can multiply donation volume in a fortnight. If it is pooled with direct giving, the ad account takes credit for a community's generosity and the following quarter looks like a collapse.

  • 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

Classy → PostHog · diagnose

Diagnostic order — Classy → PostHog

  1. 01

    Count donations carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Split donations by whether a fundraiser page produced them

    One field, and it decides whether any paid figure is interpretable.

  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.

Classy → PostHog · prove

How it gets proven — Classy → PostHog

Source of truth

Classy donations by campaign, split into direct gifts and peer-to-peer donations raised through supporters.

  • 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.
  • Direct donations reconciled per campaign against imported conversions, with peer-to-peer volume reported separately.

Classy → PostHog · free audit

What we check in the free audit

  • Count donations carrying the distinct_id
  • Follow one real conversion end to end
  • Split donations by whether a fundraiser page produced them
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Classy donations by campaign, split into direct gifts and peer-to-peer donations raised through supporters.

Get my free conversion tracking audit

Free30 minutesNo obligation

Classy → PostHog · when not to buy

When you don't need this — Classy → PostHog

  • Measure identifier coverage yourself first — pull your last hundred donations and count how many carry the distinct_id.
  • If your fundraising is entirely peer-to-peer, the lever is supporter recruitment and enablement, not conversion tracking.
  • 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.

Classy → PostHog · what we deliver

What gets built — Classy → PostHog

  • Identifier capture into Classy

    Attribute direct donations from your own traffic; report peer-to-peer volume as a separate, unattributable channel.

  • Event source: the Classy donation record

    Send direct donations at their amount, with the campaign attached so appeals can be compared.

  • 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 reverse.

Written guarantee

95%+ tracking accuracy

Measured against Classy donations by campaign, split into direct gifts and peer-to-peer donations raised through supporters.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Classy → PostHog questions, answered

Not from the browser, because the form sits on a Classy-hosted page. Send the completed donation to PostHog server-side with the distinct_id you passed across or the donor's email.

Free · 30 min

Get Classy and PostHog joined properly

Free30 minutesNo obligation