Connecting Gumroad to PostHog
Gumroad sells digital products for creators with almost no infrastructure, which is its appeal and the reason it gives you very little to work with. 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 Gumroad sale 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
Gumroad sales in PostHog: pass the distinct_id, then capture
Add PostHog's distinct_id to the Gumroad product link, read it from the sale ping, and send a purchase to the capture API with an event UUID derived from the sale ID. If the ID is lost, identify by Gumroad's recorded email when the buyer logs in. Funnels show drop-off at the Gumroad hop, sometimes from blocked overlay scripts.
PostHog is useful to a Gumroad seller who runs a real site or product (a landing page under A/B test, a SaaS sold through Gumroad licenses, a course site) and wants to see which path ended in a sale. The sale happens on Gumroad, where PostHog's snippet does not run, so the distinct_id has to travel: add it to the Gumroad product link, read it from the sale ping's URL parameters, and send a purchase event to the capture API under that distinct_id.
Derive the event UUID from the Gumroad sale ID, so a re-delivered ping produces the same event rather than doubling your revenue chart. If the distinct_id was lost on the hop, fall back to email: when the buyer later logs in to your product, identify them by the email Gumroad recorded, and the anonymous pre-purchase sessions merge with the purchase.
Session replay answers the question this pair is best at: where people hesitate before clicking out to Gumroad. A funnel from landing page to Gumroad click to purchase shows the drop at the hop itself, which on overlay checkouts is sometimes the overlay failing to load because a blocker stopped Gumroad's script. If you self-host, check ingestion lag before concluding a sale went missing.
Gumroad → PostHog · what breaks
Why this join usually fails — Gumroad → PostHog
- 01
The distinct_id never reaches Gumroad
Checkout happens on Gumroad's own domain or in an overlay, and the platform offers limited custom-field capability. In practice the identifier travels through URL parameters that Gumroad preserves, and confirming which parameters survive is the first thing to test.
- 02
A deliberately minimal platform
Gumroad's simplicity is the product. That means fewer hooks, fewer custom fields and more of the build depending on what survives in a URL — which has to be tested rather than assumed.
- 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.
Gumroad → PostHog · the fix
What working looks like — Gumroad → PostHog
The distinct_id on every sale
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
Gumroad → PostHog · architecture
How Gumroad and PostHog actually connect
- 1
Gumroad holds the truth
Gumroad is the merchant and holds the transaction. What it does not hold is much customisation, so the integration has to work within a deliberately simple product.
- 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 Gumroad sale.
- 4
The event source decides reliability
Send from your server when Gumroad pings a completed sale. Do not depend on a redirect-based thank-you page, which the buyer can skip entirely.
- 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.
Gumroad → PostHog · normal or broken
Working vs. broken, side by side — Gumroad → PostHog
Normal, not a fault
The distinct_id present on the sale
Sent from the Gumroad sale ping webhook
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
Checkout happens on Gumroad's own domain or in an overlay, and the platform offers limited custom-field capability. In practice the identifier travels through URL parameters that Gumroad preserves, and confirming which parameters survive is the first thing to test.
Sent from the browser
Gumroad's simplicity is the product. That means fewer hooks, fewer custom fields and more of the build depending on what survives in a URL — which has to be tested rather than assumed.
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
Gumroad → PostHog · diagnose
Diagnostic order — Gumroad → PostHog
- 01
Count sales carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Make a test purchase and read the sale record
Check which URL parameters actually persisted. This is quicker than reading documentation and more reliable.
- 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.
Gumroad → PostHog · prove
How it gets proven — Gumroad → PostHog
Source of truth
Gumroad's sales records for the same window, net of refunds.
- The distinct_id confirmed present on a live sale.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- A test purchase with the identifier confirmed present on the resulting Gumroad sale record.
Gumroad → PostHog · free audit
What we check in the free audit
- Count sales carrying the distinct_id
- Follow one real conversion end to end
- Make a test purchase and read the sale record
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Gumroad's sales records for the same window, net of refunds.
Free30 minutesNo obligation
Gumroad → PostHog · when not to buy
When you don't need this — Gumroad → PostHog
- Measure identifier coverage yourself first — pull your last hundred sales and count how many carry the distinct_id.
- If you are selling a handful of digital products a month, Gumroad's own analytics is genuinely enough and this work will not pay for itself.
- 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.
Gumroad → PostHog · what we deliver
What gets built — Gumroad → PostHog
Identifier capture into Gumroad
Append the click identifier to the product URL and read it back from the sale record or the ping webhook, after verifying on a real purchase which parameters Gumroad actually retains.
Event source: the Gumroad sale ping webhook
Send from your server when Gumroad pings a completed sale. Do not depend on a redirect-based thank-you page, which the buyer can skip entirely.
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
Gumroad records refunds and they should reduce the reported figure, particularly given how straightforward its refund process is for buyers.
Written guarantee
95%+ tracking accuracy
Measured against Gumroad's sales records for the same window, net of refunds.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Gumroad → PostHog questions, answered
Not from the browser snippet. Pass the distinct_id on the Gumroad link and send the purchase from Gumroad's sale ping to PostHog's capture API.
Derive the event UUID from the Gumroad sale ID, so a re-sent ping produces the same event instead of a new one.
Almost always because the distinct_id never reached the Gumroad sale. Checkout happens on Gumroad's own domain or in an overlay, and the platform offers limited custom-field capability. In practice the identifier travels through URL parameters that Gumroad preserves, and confirming which parameters survive is the first thing to test. 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 Gumroad sale ping webhook. Send from your server when Gumroad pings a completed sale. Do not depend on a redirect-based thank-you page, which the buyer can skip entirely.
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 Gumroad → PostHog
- Gumroad → Google AdsConnecting Gumroad to Google Ads
- Gumroad → MetaConnecting Gumroad to Meta Conversions API
- Gumroad → GA4Connecting Gumroad to GA4
RELATED GUIDES
Where Gumroad → PostHog fits in the rest of your tracking
- EDD → PostHogConnecting Easy Digital Downloads to PostHog
- WooCommerce → PostHogConnecting WooCommerce to PostHog
- Wix → PostHogConnecting Wix Stores to PostHog
- Gumroad → GA4Connecting Gumroad to GA4
- Gumroad → MixpanelConnecting Gumroad to Mixpanel
- FashionConversion tracking for fashion brands, reported net of returns
- PrestaShop → PostHogConnecting PrestaShop to PostHog
- nopCommerce → PostHogConnecting nopCommerce to PostHog
Free · 30 min
Get Gumroad and PostHog joined properly
Free30 minutesNo obligation
