Skip to main content
Campspot → PostHogIntegration guide

Connecting Campspot to PostHog

Campspot prices campsites dynamically by site type, length of stay and demand, which means the same booking window produces very different revenue depending on which sites are left. 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 Campspot reservation 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

Campspot and PostHog: see where site selection loses guests

Put PostHog's distinct_id on the Campspot engine URL, read it back off the reservation, and capture a reservation completed event server-side with an event UUID from the reservation number plus stay total, nights and site type. Identify the guest by email for repeat seasons, and capture searched dates on your own date picker to measure unsold demand.

PostHog's appeal for a campground is the funnel: landing page, date search, site selection, checkout, reservation. The catch is that most of that funnel runs inside Campspot's hosted engine, where your PostHog snippet may not be allowed. Check whether Campspot lets you add scripts to engine pages. If it does not, you can see everything up to the Book Now click and then only the end result, sent server-side once the reservation exists.

To join the two halves, put PostHog's distinct_id on the engine URL when the guest leaves your site, read it back off the reservation if Campspot keeps it, and capture a reservation completed event with that distinct_id, an event UUID derived from the reservation number so retries do not duplicate, and stay total, nights and site type as properties. Then identify the guest by email so next season's booking joins the same person.

The most useful question PostHog can answer here is about availability rather than marketing. Dynamic pricing and sold-out weekends mean many visitors search dates and find nothing they want. If your own site has a date picker before the engine, capture the searched dates and party type as an event, and you get a demand signal for nights the park could not sell, which reservation data alone never shows.

Campspot → PostHog · what breaks

Why this join usually fails — Campspot → PostHog

  1. 01

    The distinct_id never reaches Campspot

    The booking engine is Campspot-hosted, and the platform also operates a consumer marketplace that fills sites you did not advertise for.

  2. 02

    Nightly rate reported instead of total stay value

    A four-night booking is four times a one-night booking at the same rate. Reporting the rate rather than the stay total makes long bookings — the ones you most want — look identical to short ones.

  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.

Campspot → PostHog · the fix

What working looks like — Campspot → PostHog

  • The distinct_id on every reservation

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Campspot → PostHog · architecture

How Campspot and PostHog actually connect

  1. 1

    Campspot holds the truth

    A pull-through RV site with hookups and a tent pitch are the same reservation count and quite different money. Site type is the dimension that makes campground revenue legible.

  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 Campspot reservation.

  4. 4

    The event source decides reliability

    Send completed stays at total revenue with site type and nights, not the nightly rate.

  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.

Campspot → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the reservation

  • Sent from the Campspot reservation 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 booking engine is Campspot-hosted, and the platform also operates a consumer marketplace that fills sites you did not advertise for.

  • Sent from the browser

    A four-night booking is four times a one-night booking at the same rate. Reporting the rate rather than the stay total makes long bookings — the ones you most want — look identical to short ones.

  • 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

Campspot → PostHog · diagnose

Diagnostic order — Campspot → PostHog

  1. 01

    Count reservations carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether the conversion value is nightly rate or stay total

    One question, and it decides whether your advertising is optimising toward the length of stay that actually fills the park.

  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.

Campspot → PostHog · prove

How it gets proven — Campspot → PostHog

Source of truth

Campspot reservations by arrival date, valued at total stay revenue with site type recorded.

  • The distinct_id confirmed present on a live reservation.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Completed stays reconciled at total revenue against imported conversions, with marketplace volume separated.

Campspot → PostHog · free audit

What we check in the free audit

  • Count reservations carrying the distinct_id
  • Follow one real conversion end to end
  • Check whether the conversion value is nightly rate or stay total
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Campspot reservations by arrival date, valued at total stay revenue with site type recorded.

Get my free conversion tracking audit

Free30 minutesNo obligation

Campspot → PostHog · when not to buy

When you don't need this — Campspot → PostHog

  • Measure identifier coverage yourself first — pull your last hundred reservations and count how many carry the distinct_id.
  • If nearly all your reservations come from the Campspot marketplace, the lever is your listing rather than paid acquisition.
  • 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.

Campspot → PostHog · what we deliver

What gets built — Campspot → PostHog

  • Identifier capture into Campspot

    Capture on your own domain before the engine loads, and separate marketplace-sourced reservations as unattributable.

  • Event source: the Campspot reservation record

    Send completed stays at total revenue with site type and nights, not the nightly rate.

  • 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

    Cancellations reverse, and campgrounds see high cancellation rates on weather-dependent weekends.

Written guarantee

95%+ tracking accuracy

Measured against Campspot reservations by arrival date, valued at total stay revenue with site type recorded.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Campspot → PostHog questions, answered

Only the parts on your own domain, unless Campspot allows your script on its engine pages. The completed reservation can still be sent server-side.

Free · 30 min

Get Campspot and PostHog joined properly

Free30 minutesNo obligation