Skip to main content
Swipe Pages → PostHogIntegration guide

Connecting Swipe Pages to PostHog

Swipe Pages optimises for mobile speed, which is exactly the case where a slow-loading tracking script loses the identifier for the visitors you most wanted to reach. 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 Swipe Pages conversion 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

Swipe Pages to PostHog: carry distinct_id into the product signup

Load PostHog in the Swipe Pages head via a reverse proxy. Append the landing page's distinct_id to the signup link, bootstrap the app's PostHog with it, and identify with your user ID at signup. For sales-led forms, store distinct_id in a hidden field and send the CRM outcome to PostHog's capture API with a unique event UUID.

PostHog is useful here when the landing page feeds a product signup, because it can follow one person from the Swipe Pages visit into the app if the distinct_id survives the trip. Load the PostHog snippet in the head through a reverse proxy on your own subdomain, so ad blockers on mobile do not drop the landing page events that start the funnel.

The landing page and your app almost never share a domain, so PostHog will mint a new anonymous ID on the app side. Append the landing page's distinct_id to the signup link and bootstrap the app's PostHog instance with it, then call identify with your user ID at signup. Without that, PostHog shows two unrelated people: one who viewed a landing page and one who signed up organically.

If the form leads to a sales conversation rather than a signup, write the distinct_id into a hidden field and send the later CRM outcome to PostHog's capture API with that ID and a unique event UUID, so a retried webhook does not double the count. Session replay on the landing page is worth enabling for this source specifically: it shows whether people abandon at the form or never scroll to it, which is the usual question with short mobile pages. Mask the form inputs.

Swipe Pages → PostHog · what breaks

Why this join usually fails — Swipe Pages → PostHog

  1. 01

    The distinct_id never reaches Swipe Pages

    Mobile social traffic arrives in in-app browsers with partitioned storage and short sessions.

  2. 02

    Capture losing the race against a fast page

    The faster the page, the earlier the visitor acts, and the more likely a script that loads late misses them entirely. On mobile social traffic this can be a large minority of arrivals.

  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.

Swipe Pages → PostHog · the fix

What working looks like — Swipe Pages → PostHog

  • The distinct_id on every conversion

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Swipe Pages → PostHog · architecture

How Swipe Pages and PostHog actually connect

  1. 1

    Swipe Pages holds the truth

    Fast pages attract fast bounces. On mobile social traffic, a visitor can arrive, decide and leave before a late-loading script has run at all.

  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 Swipe Pages conversion.

  4. 4

    The event source decides reliability

    Send qualified outcomes with the source captured at first paint.

  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.

Swipe Pages → PostHog · normal or broken

Working vs. broken, side by side — Swipe Pages → PostHog

Normal, not a fault

  • The distinct_id present on the conversion

  • Sent from your CRM 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

    Mobile social traffic arrives in in-app browsers with partitioned storage and short sessions.

  • Sent from the browser

    The faster the page, the earlier the visitor acts, and the more likely a script that loads late misses them entirely. On mobile social traffic this can be a large minority of arrivals.

  • 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

Swipe Pages → PostHog · diagnose

Diagnostic order — Swipe Pages → PostHog

  1. 01

    Count conversions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check where capture sits in the load order

    If it is not in the head, some share of your fastest-converting visitors are being lost.

  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.

Swipe Pages → PostHog · prove

How it gets proven — Swipe Pages → PostHog

Source of truth

Your CRM, joined to the form submission.

  • The distinct_id confirmed present on a live conversion.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Qualified outcomes reconciled against imported conversions, with capture verified in the head.

Swipe Pages → PostHog · free audit

What we check in the free audit

  • Count conversions carrying the distinct_id
  • Follow one real conversion end to end
  • Check where capture sits in the load order
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Your CRM, joined to the form submission.

Get my free conversion tracking audit

Free30 minutesNo obligation

Swipe Pages → PostHog · when not to buy

When you don't need this — Swipe Pages → PostHog

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the distinct_id.
  • On slow desktop-heavy traffic the timing is more forgiving, though head placement is still correct.
  • 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.

Swipe Pages → PostHog · what we deliver

What gets built — Swipe Pages → PostHog

  • Identifier capture into Swipe Pages

    Capture in the document head, before anything else renders, and carry the identifier in the URL rather than relying on storage.

  • Event source: your CRM record

    Send qualified outcomes with the source captured at first paint.

  • 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

    Disqualified leads reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your CRM, joined to the form submission.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Swipe Pages → PostHog questions, answered

Pass the landing page's distinct_id to the app in the signup URL and bootstrap PostHog with it, then identify the user at signup. Cross-domain visits otherwise appear as two separate people.

Free · 30 min

Get Swipe Pages and PostHog joined properly

Free30 minutesNo obligation