Skip to main content
MemberPress → AmplitudeIntegration guide

Connecting MemberPress to Amplitude

MemberPress runs memberships inside WordPress, which means you own the database and inherit every WordPress problem alongside it. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the MemberPress subscription before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

MemberPress to Amplitude: WordPress user IDs and renewal revenue

Use the WordPress user ID, prefixed to meet Amplitude's minimum length, as user_id. Send signups server-side from the MemberPress transaction hook with that ID and the device ID from the signup request, so pre-signup history merges. Mark first payments versus renewals with revenueType, populate price and quantity, and send refunds as negative revenue.

Every MemberPress member is a WordPress user, which hands you the cleanest identity in this whole library: the WordPress user ID never changes when someone updates their email or switches card. Use it, or a prefixed form of it, as the Amplitude user ID everywhere. Short numeric IDs can fall under Amplitude's minimum user ID length, so a prefix such as a site code avoids rejected events.

Merging the anonymous visitor into that user is where caching bites. The Amplitude browser SDK sets a device ID on your cached marketing pages without trouble, but the identify call must run where the user is known. Send the signup server-side from the MemberPress transaction hook with both the user ID and the device ID read from the signup request, so the pre-signup history merges with the member instead of starting a new person.

Revenue needs two things MemberPress makes easy to get wrong. Each recurring payment fires its own completed transaction, so mark first payments and renewals separately, for example with revenueType, or a monthly plan looks like a stream of new customers. And populate price and quantity on every revenue event, sending refunds as negative revenue against the same member, so cohort lifetime value matches what MemberPress records in your database.

MemberPress → Amplitude · what breaks

Why this join usually fails — MemberPress → Amplitude

  1. 01

    The user ID and device ID pair never reaches MemberPress

    Page caching serves a cached render to the visitor, so anything relying on a dynamically populated field can silently fail. The identifier has to be captured and stored as subscription metadata server-side, not carried in a rendered page.

  2. 02

    Caching between the visitor and your code

    The same problem that breaks WooCommerce tracking. A cached page never runs your capture logic, and the failure is invisible because the site still works.

  3. 03

    Revenue events that carry no revenue

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  4. 04

    Nothing reconciles afterwards

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

MemberPress → Amplitude · the fix

What working looks like — MemberPress → Amplitude

  • The user ID and device ID pair on every membership

  • Conversions arriving in Amplitude

    The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.

  • Reconciled against the source

MemberPress → Amplitude · architecture

How MemberPress and Amplitude actually connect

  1. 1

    MemberPress holds the truth

    Owning the database is the advantage — you can query it directly and reconcile without depending on anyone. The disadvantage is that caching, plugin conflicts and optimisation tools sit between your visitor and your code.

  2. 2

    Amplitude needs a click to match

    Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.

  3. 3

    The identifier is the bridge

    The user ID and device ID pair, captured at the visit and carried into the MemberPress subscription.

  4. 4

    The event source decides reliability

    Fire server-side from the PHP hook, which runs regardless of caching, and value recurring memberships over their expected life.

  5. 5

    Deduplication at the destination

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

MemberPress → Amplitude · normal or broken

Working vs. broken, side by side — MemberPress → Amplitude

Normal, not a fault

  • The user ID and device ID pair present on the membership

  • Sent from the MemberPress transaction-completed hook

  • Deduplicated correctly

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

  • Reconciles with the source

Actually broken

  • The user ID and device ID pair missing on most records

    Page caching serves a cached render to the visitor, so anything relying on a dynamically populated field can silently fail. The identifier has to be captured and stored as subscription metadata server-side, not carried in a rendered page.

  • Sent from the browser

    The same problem that breaks WooCommerce tracking. A cached page never runs your capture logic, and the failure is invisible because the site still works.

  • Counted twice, or not at all

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  • Nobody has reconciled it

MemberPress → Amplitude · diagnose

Diagnostic order — MemberPress → Amplitude

  1. 01

    Count memberships carrying the user ID and device ID pair

  2. 02

    Follow one real conversion end to end

  3. 03

    Submit a test signup through a fully cached page

    Not as a logged-in admin, which bypasses the cache. If the metadata is empty on the cached path, caching is your cause.

  4. 04

    Check a purchase event for the price and quantity fields specifically

    Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.

  5. 05

    Read the match rate, not the success message

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

MemberPress → Amplitude · prove

How it gets proven — MemberPress → Amplitude

Source of truth

MemberPress transactions and subscriptions in your own WordPress database, for the same window.

  • The user ID and device ID pair confirmed present on a live membership.
  • Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
  • Subscription metadata confirmed populated on a signup made as an anonymous visitor through cache.

MemberPress → Amplitude · free audit

What we check in the free audit

  • Count memberships carrying the user ID and device ID pair
  • Follow one real conversion end to end
  • Submit a test signup through a fully cached page
  • Check a purchase event for the price and quantity fields specifically
  • Read the match rate, not the success message

Checked against

MemberPress transactions and subscriptions in your own WordPress database, for the same window.

Get my free conversion tracking audit

Free30 minutesNo obligation

MemberPress → Amplitude · when not to buy

When you don't need this — MemberPress → Amplitude

  • Measure identifier coverage yourself first — pull your last hundred memberships and count how many carry the user ID and device ID pair.
  • If you run no caching layer and a single membership tier, a developer can wire this in an afternoon.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

MemberPress → Amplitude · what we deliver

What gets built — MemberPress → Amplitude

  • Identifier capture into MemberPress

    Capture the identifier and write it to subscription metadata through a MemberPress or WordPress hook, so it lives in your database rather than in a page that might be cached.

  • Event source: the MemberPress transaction-completed hook

    Fire server-side from the PHP hook, which runs regardless of caching, and value recurring memberships over their expected life.

  • Dispatch to Amplitude

    The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.

  • Reversals where they exist

    Cancellations and refunds are recorded against the subscription and should reduce the reported figure.

Written guarantee

95%+ tracking accuracy

Measured against MemberPress transactions and subscriptions in your own WordPress database, for the same window.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

MemberPress → Amplitude questions, answered

The WordPress user ID, prefixed if needed to meet Amplitude's minimum length. It stays the same when members change their email, unlike an email-based ID.

Free · 30 min

Get MemberPress and Amplitude joined properly

Free30 minutesNo obligation