Skip to main content
MemberPress → BigQueryIntegration guide

Connecting MemberPress to BigQuery

MemberPress runs memberships inside WordPress, which means you own the database and inherit every WordPress problem alongside it. BigQuery has no attribution model, no deduplication rules and no opinion about your data — which makes it the only destination on this site where every number is exactly as good as the query that produced it. The join between them succeeds or fails on one thing: whether whatever join key you decide on reaches the MemberPress subscription before the conversion happens, because BigQuery can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

MemberPress to BigQuery: your WordPress tables, joined to click IDs

Load MemberPress's transaction and subscription tables, typically wp_mepr_transactions and wp_mepr_subscriptions, plus users, usermeta and stored click IDs into BigQuery. On managed hosts, use scheduled exports keyed on transaction ID and updated timestamp; replicate only where your host allows. Cast string metadata before summing and deduplicate on transaction ID.

Owning the database is the reason this pair works well. MemberPress keeps transactions and subscriptions in its own tables in your WordPress MySQL database, typically prefixed like wp_mepr_transactions and wp_mepr_subscriptions, plus member data in the WordPress users and usermeta tables. Confirm the table names against your install's prefix and version, then load them into BigQuery as they are, with the click IDs you stored in subscription metadata alongside.

How you load depends on hosting more than on MemberPress. Managed and shared WordPress hosts rarely give the binary log access that replication tools need, so the realistic setup is a scheduled export of new and changed rows, keyed on the transaction ID and its updated timestamp. On a server you control, replication from MySQL into BigQuery is possible; check what your host allows before choosing.

The joins are then yours to write: subscription to its transactions for revenue over time, subscription metadata to the captured gclid, fbclid or other click IDs, and refunds and cancellations reducing the total. Watch for one WordPress quirk: metadata values arrive as strings, so a stored amount or timestamp needs casting before it is summed. Duplicate rows from a re-run export are the other usual problem, so deduplicate on transaction ID.

MemberPress → BigQuery · what breaks

Why this join usually fails — MemberPress → BigQuery

  1. 01

    Whatever join key you decide on 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

    The warehouse quietly disagreeing with every platform

    This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.

  4. 04

    Nothing reconciles afterwards

    BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.

MemberPress → BigQuery · the fix

What working looks like — MemberPress → BigQuery

  • Whatever join key you decide on on every membership

  • Conversions arriving in BigQuery

    The row lands in a table you own, joinable to every other table you own, with no window and no expiry.

  • Reconciled against the source

MemberPress → BigQuery · architecture

How MemberPress and BigQuery 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

    BigQuery needs a click to match

    BigQuery needs a schema and consistent types. The failure mode is not rejection, it is silent divergence: a column that arrives as a string in one load and an integer in the next, or a timestamp in the wrong zone, which produces answers that look plausible and are not.

  3. 3

    The identifier is the bridge

    Whatever join key you decide on, 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

    Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.

MemberPress → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the membership

  • Sent from the MemberPress transaction-completed hook

  • Deduplicated correctly

    Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.

  • Reconciles with the source

Actually broken

  • Whatever join key you decide on 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

    This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.

  • Nobody has reconciled it

MemberPress → BigQuery · diagnose

Diagnostic order — MemberPress → BigQuery

  1. 01

    Count memberships carrying whatever join key you decide on

  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

    Reconcile warehouse order counts against each platform for one closed window

    The gaps localize the problem: a gap against all platforms is a collection issue, a gap against one is that platform's window or matching.

  5. 05

    Read the match rate, not the success message

    BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.

MemberPress → BigQuery · prove

How it gets proven — MemberPress → BigQuery

Source of truth

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

  • Whatever join key you decide on confirmed present on a live membership.
  • Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
  • Subscription metadata confirmed populated on a signup made as an anonymous visitor through cache.

MemberPress → BigQuery · free audit

What we check in the free audit

  • Count memberships carrying whatever join key you decide on
  • Follow one real conversion end to end
  • Submit a test signup through a fully cached page
  • Reconcile warehouse order counts against each platform for one closed window
  • 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 → BigQuery · when not to buy

When you don't need this — MemberPress → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred memberships and count how many carry whatever join key you decide on.
  • If you run no caching layer and a single membership tier, a developer can wire this in an afternoon.
  • If you have one store and one ad platform, a warehouse is infrastructure you will maintain for a reconciliation you could do in a spreadsheet.

MemberPress → BigQuery · what we deliver

What gets built — MemberPress → BigQuery

  • 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 BigQuery

    Streaming inserts or scheduled batch loads from your order system, with the raw event retained alongside whatever you derive from it.

  • 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 → BigQuery questions, answered

The transactions and subscriptions tables, such as wp_mepr_transactions, plus the usermeta or subscription metadata where captured click IDs live. Confirm names against your table prefix and version.

Free · 30 min

Get MemberPress and BigQuery joined properly

Free30 minutesNo obligation