Skip to main content
Elavon → PostHogIntegration guide

Connecting Elavon to PostHog

Elavon is a bank-owned processor serving a lot of hospitality and retail, which means most of its volume is card-present and structurally unattributable. 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 Elavon transaction 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 checkout funnels that include Elavon declines

posthog-js loses sight at Elavon's hosted payment page, so store the PostHog distinct_id on the order before redirect and send server-side events when Elavon responds: approved, declined, voided. Declines, with Elavon's summarized reason and never card data, reveal gateway rule problems. Use your order number as the event UUID for approved payments.

PostHog is useful to an Elavon merchant for something ad platforms ignore: why paying customers fail to pay. The checkout funnel usually breaks at the hosted payment page, where the browser leaves your domain and posthog-js stops seeing anything. Store the PostHog distinct_id on the order before the redirect, then send server-side events from your order system when Elavon responds: payment approved, payment declined, payment voided.

Declines are the useful part. A decline rate that jumps for one card type, one device or one country often points at an address-verification or fraud-rule setting at the gateway rather than at the site, and PostHog lets you break it down by the same properties as the rest of the funnel. Send the decline reason as Elavon returns it, in summary form, never card numbers or anything from the card itself.

Use your order number as the event UUID for the approved payment so retries do not double-count. If you self-host PostHog, the server-side capture call is the one piece Elavon's redirect cannot interrupt, which is the main reason to prefer it over relying on the return page. Card-present terminal sales have no place in PostHog.

Elavon → PostHog · what breaks

Why this join usually fails — Elavon → PostHog

  1. 01

    The distinct_id never reaches Elavon

    Terminals carry no marketing context. On the ecommerce side, hosted payment pages redirect the shopper away and the identifier must be attached at payment creation.

  2. 02

    A mostly card-present processor

    For a hospitality or retail merchant the great majority of Elavon volume is a card at a terminal. The honest deliverable states how much of the revenue is outside any attribution.

  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.

Elavon → PostHog · the fix

What working looks like — Elavon → PostHog

  • The distinct_id on every transaction

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Elavon → PostHog · architecture

How Elavon and PostHog actually connect

  1. 1

    Elavon holds the truth

    The split decides everything. Card-present volume has no click and no session, and blending it with ecommerce makes both figures unreadable.

  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 Elavon transaction.

  4. 4

    The event source decides reliability

    Fire on settlement for ecommerce transactions. For card-present there is nothing to fire — that is a boundary, not a gap to engineer around.

  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.

Elavon → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the transaction

  • Sent from the Elavon settlement report or gateway notification

  • 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

    Terminals carry no marketing context. On the ecommerce side, hosted payment pages redirect the shopper away and the identifier must be attached at payment creation.

  • Sent from the browser

    For a hospitality or retail merchant the great majority of Elavon volume is a card at a terminal. The honest deliverable states how much of the revenue is outside any attribution.

  • 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

Elavon → PostHog · diagnose

Diagnostic order — Elavon → PostHog

  1. 01

    Count transactions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Split settled volume by channel and state the ecommerce share

    If ecommerce is a small minority, that is the ceiling on everything a campaign can be credited with.

  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.

Elavon → PostHog · prove

How it gets proven — Elavon → PostHog

Source of truth

Elavon's settled transactions by date, split card-present and ecommerce.

  • The distinct_id confirmed present on a live transaction.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Ecommerce transactions reconciled separately, with the card-present share stated as unattributable.

Elavon → PostHog · free audit

What we check in the free audit

  • Count transactions carrying the distinct_id
  • Follow one real conversion end to end
  • Split settled volume by channel and state the ecommerce share
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Elavon's settled transactions by date, split card-present and ecommerce.

Get my free conversion tracking audit

Free30 minutesNo obligation

Elavon → PostHog · when not to buy

When you don't need this — Elavon → PostHog

  • Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry the distinct_id.
  • If you have no ecommerce channel at all, there is nothing here for click attribution and we would say so.
  • 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.

Elavon → PostHog · what we deliver

What gets built — Elavon → PostHog

  • Identifier capture into Elavon

    Attach the identifier to the ecommerce transaction's reference fields, and report card-present volume as a separate, honestly unattributable line.

  • Event source: the Elavon settlement report or gateway notification

    Fire on settlement for ecommerce transactions. For card-present there is nothing to fire — that is a boundary, not a gap to engineer around.

  • 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 chargebacks are recorded against the original transaction.

Written guarantee

95%+ tracking accuracy

Measured against Elavon's settled transactions by date, split card-present and ecommerce.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Elavon → PostHog questions, answered

posthog-js cannot see Elavon's hosted payment page. Store the distinct_id on the order and send the payment result from your server.

Free · 30 min

Get Elavon and PostHog joined properly

Free30 minutesNo obligation