Skip to main content
Duda → PostHogIntegration guide

Connecting Duda to PostHog

Duda is a hosted website builder sold largely through agencies and resellers, which caps what any individual site owner can change. 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 Duda store order or form submission 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

Duda marketing site and product in one PostHog project

Add the PostHog snippet through Duda's head HTML and persist it across subdomains so the Duda site's anonymous distinct_id matches the app's at signup, where identify merges them. For Duda demo-request forms, capture the distinct_id into a hidden field and send the capture server-side from the form webhook so it joins the visitor's page history.

PostHog on a Duda site is usually a software company that wants its marketing site and its product in the same PostHog project, so a visitor's first ad click, Duda pages and later product use sit on one person. The snippet goes into Duda's head HTML, and the decision that matters is the cookie domain: set PostHog to persist across subdomains so the anonymous distinct_id from the Duda site on the root domain is the same one the app sees at signup, where an identify call merges them.

Duda forms sit outside that flow. A demo request on the Duda site arrives via the form webhook with no distinct_id unless you capture it into a hidden field when the form loads. Do that, and the server-side capture from the webhook joins the visitor's page history; skip it and every demo request becomes a new anonymous person with no source.

Two things break this pair in practice. Duda caches and manages pages, so a snippet edit can take time to appear on every page, and an agency-held Duda account may not let the software team change head HTML at all. Settle who owns the Duda code injection before setting up the project, not after the first report shows half the visits missing.

Duda → PostHog · what breaks

Why this join usually fails — Duda → PostHog

  1. 01

    The distinct_id never reaches Duda

    Duda controls the page lifecycle and limits custom code injection, and agency-managed sites often have restricted access. What is possible depends on the plan and on who holds the account.

  2. 02

    Platform and access limits together

    Duda restricts custom code and the account is frequently held by an agency. Both have to be resolved before any build, and the second is usually slower.

  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.

Duda → PostHog · the fix

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

Duda → PostHog · architecture

How Duda and PostHog actually connect

  1. 1

    Duda holds the truth

    Most Duda sites are lead-generation rather than commerce, so the conversion is usually a form submission and the money lives entirely offline in the client's own system.

  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 Duda store order or form submission.

  4. 4

    The event source decides reliability

    Send from the webhook rather than a thank-you page, given how much of the page lifecycle Duda manages.

  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.

Duda → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the conversion

  • Sent from the Duda form webhook or store order event

  • 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

    Duda controls the page lifecycle and limits custom code injection, and agency-managed sites often have restricted access. What is possible depends on the plan and on who holds the account.

  • Sent from the browser

    Duda restricts custom code and the account is frequently held by an agency. Both have to be resolved before any build, and the second is usually slower.

  • 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

Duda → PostHog · diagnose

Diagnostic order — Duda → PostHog

  1. 01

    Count conversions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Establish plan-level code access and who controls the account

    These decide feasibility before any technical question does.

  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.

Duda → PostHog · prove

How it gets proven — Duda → PostHog

Source of truth

Duda's store orders or form submissions for the same window.

  • 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.
  • A form submission or order confirmed to carry the identifier.

Duda → PostHog · free audit

What we check in the free audit

  • Count conversions carrying the distinct_id
  • Follow one real conversion end to end
  • Establish plan-level code access and who controls the account
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Duda's store orders or form submissions for the same window.

Get my free conversion tracking audit

Free30 minutesNo obligation

Duda → PostHog · when not to buy

When you don't need this — Duda → PostHog

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the distinct_id.
  • If the site is lead-gen only and the client's CRM holds the money, build there instead — Duda is just the front door.
  • 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.

Duda → PostHog · what we deliver

What gets built — Duda → PostHog

  • Identifier capture into Duda

    Capture the identifier through Duda's supported custom code injection into a hidden form field, and verify it lands on a real submission.

  • Event source: the Duda form webhook or store order event

    Send from the webhook rather than a thank-you page, given how much of the page lifecycle Duda manages.

  • 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

    For store orders, refunds. For lead forms, nothing — qualification has to happen before the send.

Written guarantee

95%+ tracking accuracy

Measured against Duda's store orders or form submissions for the same window.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Duda → PostHog questions, answered

Install PostHog via Duda's head HTML on the same project as the app, and enable cross-subdomain persistence so one distinct_id follows the visitor to signup.

Free · 30 min

Get Duda and PostHog joined properly

Free30 minutesNo obligation