Switching from PostHog

On PostHog? Keep your events. Add the revenue.

PostHog is a toolbox. Metrivo does one job: tracing each payment back to the visit that earned it. Run them together, or keep your posthog.capture() calls.

Four steps. No rebuild.

  1. 1

    Add the Metrivo script.

    Most teams keep PostHog for product analytics and replay and add Metrivo beside it. While posthog-js is loaded, your calls go to PostHog only; Metrivo does not wrap a loaded tool.

  2. 2

    Or swap the script and keep the calls.

    If you remove posthog-js, posthog.capture("name", properties) calls become Metrivo custom events with the same name and properties, so they do not throw.

  3. 3

    Pass Metrivo's two fields at checkout.

    Add window.Metrivo.getAttributionMetadata() to the metadata your server sends to your billing provider. That is the one line that lets a payment be matched to its visit, with a confidence label.

  4. 4

    Verify the first matched payment.

    Open the setup screen. The script, billing connection and visitor-matched payment checks turn green as real events arrive.

What carries over, verified

Checked against PostHog's documentation on 2026-10-28.

  • posthog.capture("name", properties) — custom event calls, only when posthog-js is not on the page. The options argument is ignored and properties starting with $ are dropped.

What does not carry over

  • posthog.identify(), $set and $set_once person properties. Metrivo does not store user profiles or raw personal data.
  • Autocapture, session recording, feature flags, experiments and surveys.

Your history

PostHog history stays in PostHog. Metrivo starts attributing from the first visit after the script is added; there is no PostHog-specific importer.

Every payment still gets a confidence label and a recorded reason when it is unknown. PostHog does not publish visitor IDs for checkout, so the one-line Metrivo metadata is what links a payment to its visit. Metrivo is not a feature-for-feature replacement; read the sourced comparison before switching.