Skip to main content
Authorize.net → PostHogIntegration guide

Connecting Authorize.net to PostHog

Authorize.net is one of the oldest payment gateways still in wide use, which means it sits underneath a great many legacy carts that were built before anyone thought about attribution. 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 Authorize.net 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

Authorize.net payments and declines into PostHog

Store the PostHog distinct_id in an Authorize.net user-defined field at charge, then send server events for authorization, decline, settlement and refund to that person, with a deterministic UUID derived from transaction ID and event type. Alias anonymous and logged-in IDs, count revenue only at settlement, and keep card details and AVS responses out.

PostHog is where an Authorize.net merchant can see what the gateway's own reports cannot: which checkout sessions ended in a decline, a fraud hold or no attempt at all. Store the PostHog distinct_id in a user-defined field when the cart creates the charge, then send server events for authorization, decline, settlement and refund against the same person. A funnel from checkout start to settled payment shows where real money falls out, including card declines that look like abandonment from the browser.

Deduplication uses the event UUID, and an Authorize.net transaction ID is not a UUID. Derive a deterministic one from the transaction ID and event type, so a retried webhook or a re-run backfill produces the same UUID instead of a second purchase.

The common break is identity. Legacy carts often create the charge before the customer has an account, so the distinct_id on the transaction is the anonymous browser ID, and the purchase never joins the logged-in profile unless you alias the two. Send revenue on settlement and keep the authorization event separate, so a held-for-review order does not count as revenue. Keep card details and AVS responses out of event properties; a decline reason category is enough for the funnel.

Authorize.net → PostHog · what breaks

Why this join usually fails — Authorize.net → PostHog

  1. 01

    The distinct_id never reaches Authorize.net

    The gateway sees a payment and nothing about marketing. Whether an identifier exists depends entirely on whether the cart passed it into a custom field when creating the transaction, and legacy carts generally did not.

  2. 02

    A legacy gateway under a legacy cart

    Authorize.net is usually the oldest thing in the stack. The custom fields exist and almost nobody populates them, so the transaction arrives with no trace of the campaign that produced it.

  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.

Authorize.net → PostHog · the fix

What working looks like — Authorize.net → 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

Authorize.net → PostHog · architecture

How Authorize.net and PostHog actually connect

  1. 1

    Authorize.net holds the truth

    Authorisation reserves funds and settlement moves them. Authorize.net batches settlement, usually daily, so a transaction authorised late in the day settles the next — which shifts revenue across a date boundary if you report the wrong state.

  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 Authorize.net transaction.

  4. 4

    The event source decides reliability

    Fire on settled, not authorised. Batching means the two carry different dates, and reporting on authorisation puts revenue in the wrong day.

  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.

Authorize.net → PostHog · normal or broken

Working vs. broken, side by side — Authorize.net → PostHog

Normal, not a fault

  • The distinct_id present on the transaction

  • Sent from the Authorize.net webhook on settlement

  • 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 gateway sees a payment and nothing about marketing. Whether an identifier exists depends entirely on whether the cart passed it into a custom field when creating the transaction, and legacy carts generally did not.

  • Sent from the browser

    Authorize.net is usually the oldest thing in the stack. The custom fields exist and almost nobody populates them, so the transaction arrives with no trace of the campaign that produced it.

  • 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

Authorize.net → PostHog · diagnose

Diagnostic order — Authorize.net → PostHog

  1. 01

    Count transactions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Open a settled transaction and read its user-defined fields

    Empty means the cart never passed anything, which is the usual finding and cannot be recovered retroactively.

  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.

Authorize.net → PostHog · prove

How it gets proven — Authorize.net → PostHog

Source of truth

Authorize.net's settled transactions for the same window, not authorisations.

  • 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.
  • A transaction confirmed to carry the identifier through authorisation into settlement.

Authorize.net → PostHog · free audit

What we check in the free audit

  • Count transactions carrying the distinct_id
  • Follow one real conversion end to end
  • Open a settled transaction and read its user-defined fields
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Authorize.net's settled transactions for the same window, not authorisations.

Get my free conversion tracking audit

Free30 minutesNo obligation

Authorize.net → PostHog · when not to buy

When you don't need this — Authorize.net → PostHog

  • Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry the distinct_id.
  • If the cart on top of Authorize.net already reports orders accurately, work at the order layer — it is closer to the customer and easier to change.
  • 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.

Authorize.net → PostHog · what we deliver

What gets built — Authorize.net → PostHog

  • Identifier capture into Authorize.net

    Pass the click identifier into the transaction's user-defined fields when your application creates the charge. Authorize.net preserves them through settlement and into the transaction detail record.

  • Event source: the Authorize.net webhook on settlement

    Fire on settled, not authorised. Batching means the two carry different dates, and reporting on authorisation puts revenue in the wrong day.

  • 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

    Voids, refunds and chargebacks are all recorded against the original transaction and carry its user-defined fields.

Written guarantee

95%+ tracking accuracy

Measured against Authorize.net's settled transactions for the same window, not authorisations.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Authorize.net → PostHog questions, answered

Post server events through the PostHog capture API with the distinct_id stored on the transaction, using a UUID derived from the transaction ID so retries deduplicate.

Free · 30 min

Get Authorize.net and PostHog joined properly

Free30 minutesNo obligation