Skip to main content
Restrict Content Pro → PostHogIntegration guide

Connecting Restrict Content Pro to PostHog

Restrict Content Pro gates WordPress content behind memberships, which means the conversion is a subscription and the content is the product — with no shipping, no fulfilment and pure margin. 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 RCP membership 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

Restrict Content Pro to PostHog: what members read before they quit

Use the WordPress user ID as PostHog's distinct_id after login, aliasing the anonymous ID at registration. Send Restrict Content Pro activations, renewals and cancellations server-side with level and value, and set membership level as a person property to split content events by tier. Confirm logged-in members get uncached pages, or identify calls may go wrong.

PostHog answers the question a Restrict Content Pro site cannot answer on its own: what paying members actually do with the content. RCP knows who pays and when they stop; it does not know that most cancellations come from members who stopped opening a particular course after week two. Joining the two is the reason to use PostHog here.

Use the WordPress user ID as the distinct_id once a member logs in, and alias the anonymous browser ID at registration so pre-signup reading attaches to the member. Send membership activations, renewals and cancellations server-side from RCP with level and value, and set the membership level as a person property so every content event can be split by tier.

The common break is caching. A misconfigured WordPress page cache can serve logged-in members cached HTML, and a cached page can carry the wrong identify call or none at all. Confirm that logged-in members get uncached pages, or identify in JavaScript from an uncached endpoint, before trusting any cohort that compares members by tier.

Restrict Content Pro → PostHog · what breaks

Why this join usually fails — Restrict Content Pro → PostHog

  1. 01

    The distinct_id never reaches Restrict Content Pro

    Registration runs on your own WordPress site, which is an advantage, but renewals arrive silently with no session.

  2. 02

    Tenure value assumed rather than measured

    Content memberships churn at rates that vary enormously by niche. Using a generic figure for lifetime value will either starve a channel that works or overfund one that does not.

  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.

Restrict Content Pro → PostHog · the fix

What working looks like — Restrict Content Pro → PostHog

  • The distinct_id on every membership

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Restrict Content Pro → PostHog · architecture

How Restrict Content Pro and PostHog actually connect

  1. 1

    Restrict Content Pro holds the truth

    Content memberships have near-zero marginal cost, which makes lifetime value the whole economics and churn the only variable that matters.

  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 RCP membership.

  4. 4

    The event source decides reliability

    Send new memberships at a tenure value from your own churn data; renewals belong in retention.

  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.

Restrict Content Pro → PostHog · normal or broken

Working vs. broken, side by side — Restrict Content Pro → PostHog

Normal, not a fault

  • The distinct_id present on the membership

  • Sent from the RCP membership record

  • 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

    Registration runs on your own WordPress site, which is an advantage, but renewals arrive silently with no session.

  • Sent from the browser

    Content memberships churn at rates that vary enormously by niche. Using a generic figure for lifetime value will either starve a channel that works or overfund one that does not.

  • 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

Restrict Content Pro → PostHog · diagnose

Diagnostic order — Restrict Content Pro → PostHog

  1. 01

    Count memberships carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Calculate median membership length from your own cancellations

    One query, and it sets every acquisition decision that follows.

  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.

Restrict Content Pro → PostHog · prove

How it gets proven — Restrict Content Pro → PostHog

Source of truth

RCP memberships by start date, split into new subscriptions and renewals.

  • The distinct_id confirmed present on a live membership.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • New memberships reconciled at a defensible tenure value against imported conversions.

Restrict Content Pro → PostHog · free audit

What we check in the free audit

  • Count memberships carrying the distinct_id
  • Follow one real conversion end to end
  • Calculate median membership length from your own cancellations
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

RCP memberships by start date, split into new subscriptions and renewals.

Get my free conversion tracking audit

Free30 minutesNo obligation

Restrict Content Pro → PostHog · when not to buy

When you don't need this — Restrict Content Pro → PostHog

  • Measure identifier coverage yourself first — pull your last hundred memberships and count how many carry the distinct_id.
  • New sites without churn history should report first-period revenue only rather than guessing a lifetime.
  • 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.

Restrict Content Pro → PostHog · what we deliver

What gets built — Restrict Content Pro → PostHog

  • Identifier capture into Restrict Content Pro

    Capture on landing and store on the member record so renewals can be recognised as renewals.

  • Event source: the RCP membership record

    Send new memberships at a tenure value from your own churn data; renewals belong in retention.

  • 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

    Cancellations inside the first period reverse.

Written guarantee

95%+ tracking accuracy

Measured against RCP memberships by start date, split into new subscriptions and renewals.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Restrict Content Pro → PostHog questions, answered

Install PostHog's snippet for pageviews, identify members by WordPress user ID on login, and send RCP membership changes server-side through the capture API. Check whether a maintained WordPress plugin handles identify for logged-in users.

Free · 30 min

Get Restrict Content Pro and PostHog joined properly

Free30 minutesNo obligation