Skip to main content
Buy Me a Coffee → PostHogIntegration guide

Connecting Buy Me a Coffee to PostHog

Buy Me a Coffee is a hosted tip jar, which means the transaction happens entirely on their domain and the amounts are small, irregular and impulse-driven. 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 Buy Me a Coffee support 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 and Buy Me a Coffee: tie supporters to known users

PostHog captures the support-button click on your site, not the payment on buymeacoffee.com. If your product has sign-in, check whether the webhook email belongs to a user and capture a supported event on their distinct_id, with a UUID derived from the transaction ID. Don't create persons for unmatched emails; without sign-in, compare weekly clicks against support counts.

PostHog makes sense for a creator who builds something, such as a free tool, a game or an open-source project's docs, and uses Buy Me a Coffee for donations. The support button on your site is an event PostHog already captures with the visitor's distinct_id. The payment on buymeacoffee.com is not, and the support record carries only the email the supporter typed.

If your product has sign-in, the join is possible. When a support arrives by webhook, check whether that email belongs to one of your users and, if so, capture a supported event against their distinct_id with amount and type, deriving the event UUID from the Buy Me a Coffee transaction ID so a retried webhook does not duplicate. Do not capture supporters who match no user with the email as distinct_id; that creates a person who never merges with their anonymous browsing.

What this gives you is product insight, not ad attribution: which features or pages donors actually used, and whether supporters keep using the product longer. That is the honest reason to pair these two. For sites without sign-in, stop at the button-click event and compare its weekly count against Buy Me a Coffee's support count.

Buy Me a Coffee → PostHog · what breaks

Why this join usually fails — Buy Me a Coffee → PostHog

  1. 01

    The distinct_id never reaches Buy Me a Coffee

    The payment page is fully hosted on the platform's domain, and most supports arrive from a link in a video description, a newsletter or a bio — surfaces where no identifier exists.

  2. 02

    Amounts too small and irregular to optimize against

    Tips of a few pounds arriving unpredictably do not give a bidding algorithm anything to learn from, and paying for clicks to a tip jar rarely returns the click cost.

  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.

Buy Me a Coffee → PostHog · the fix

What working looks like — Buy Me a Coffee → PostHog

  • The distinct_id on every support

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Buy Me a Coffee → PostHog · architecture

How Buy Me a Coffee and PostHog actually connect

  1. 1

    Buy Me a Coffee holds the truth

    A one-off tip and a monthly membership have completely different value and completely different acquisition economics. The platform reports them together and they should not be.

  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 Buy Me a Coffee support.

  4. 4

    The event source decides reliability

    Send recurring memberships at their monthly value and one-off supports separately, if at all.

  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.

Buy Me a Coffee → PostHog · normal or broken

Working vs. broken, side by side — Buy Me a Coffee → PostHog

Normal, not a fault

  • The distinct_id present on the support

  • Sent from the Buy Me a Coffee transaction 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 payment page is fully hosted on the platform's domain, and most supports arrive from a link in a video description, a newsletter or a bio — surfaces where no identifier exists.

  • Sent from the browser

    Tips of a few pounds arriving unpredictably do not give a bidding algorithm anything to learn from, and paying for clicks to a tip jar rarely returns the click cost.

  • 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

Buy Me a Coffee → PostHog · diagnose

Diagnostic order — Buy Me a Coffee → PostHog

  1. 01

    Count supports carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare average support value against your cost per click

    For most creators the arithmetic settles the question immediately, and the honest answer is not to advertise this at all.

  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.

Buy Me a Coffee → PostHog · prove

How it gets proven — Buy Me a Coffee → PostHog

Source of truth

Buy Me a Coffee transactions by date, split into one-off supports and recurring memberships.

  • The distinct_id confirmed present on a live support.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Recurring memberships reconciled against imported conversions, with one-off supports counted separately.

Buy Me a Coffee → PostHog · free audit

What we check in the free audit

  • Count supports carrying the distinct_id
  • Follow one real conversion end to end
  • Compare average support value against your cost per click
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Buy Me a Coffee transactions by date, split into one-off supports and recurring memberships.

Get my free conversion tracking audit

Free30 minutesNo obligation

Buy Me a Coffee → PostHog · when not to buy

When you don't need this — Buy Me a Coffee → PostHog

  • Measure identifier coverage yourself first — pull your last hundred supports and count how many carry the distinct_id.
  • This is the common case: paid acquisition into a tip jar almost never pays back. Use distinct links, measure by channel, and spend the budget elsewhere.
  • 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.

Buy Me a Coffee → PostHog · what we deliver

What gets built — Buy Me a Coffee → PostHog

  • Identifier capture into Buy Me a Coffee

    Use distinct links per channel rather than attempting cookie-based attribution. It is cruder and it is the only thing that will actually work here.

  • Event source: the Buy Me a Coffee transaction record

    Send recurring memberships at their monthly value and one-off supports separately, if at all.

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

Written guarantee

95%+ tracking accuracy

Measured against Buy Me a Coffee transactions by date, split into one-off supports and recurring memberships.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Buy Me a Coffee → PostHog questions, answered

Capture the support-button click on your site, and send completed supports from Buy Me a Coffee's webhook only when the supporter's email matches a signed-in user. Derive the event UUID from the transaction ID.

Free · 30 min

Get Buy Me a Coffee and PostHog joined properly

Free30 minutesNo obligation