Skip to main content
Recurly → GA4Integration guide

Connecting Recurly to GA4

Recurly is built around keeping subscriptions alive, which means a large share of the revenue it recovers comes from payments that failed and were retried rather than from anything marketing did. GA4 is where the business goes to understand what happened, which makes an unattributed conversion there expensive in decisions rather than in ad spend. The join between them succeeds or fails on one thing: whether the GA4 client_id reaches the Recurly subscription before the conversion happens, because GA4 can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Recurly in GA4: first payment as purchase, renewals kept out

Send the first successful payment of a new Recurly subscription to GA4 as purchase from the webhook, with transaction_id set to the Recurly invoice number, value net of coupons and the plan code as the item. Store client_id and session_id on the Recurly account before a hosted checkout redirect. Use a separate trial_start event, and keep renewals out of purchase.

GA4 has no subscription model, so the decision is which Recurly events become a purchase at all. Send the first successful payment of a new subscription as purchase, with transaction_id set to the Recurly invoice number, value net of any coupon, and an item for the plan code. Free trial starts fit a separate custom event such as trial_start, marked as a key event only if acquisition is trial-led.

Renewals and dunning recoveries should not go to GA4 as purchase. A renewal sent through Measurement Protocol arrives with no session, lands under (not set) or (direct) depending on the report, and adds revenue every month the customer stays. If you want renewal revenue in GA4 at all, use a distinct event name like subscription_renewal and keep it out of the revenue metrics.

If checkout runs on Recurly's hosted payment pages, the browser leaves your domain and a thank-you page tag never sees the purchase. Capture the client_id and session_id before the redirect, store them in custom fields on the Recurly account, and send the first payment from the webhook. GA4 accepts timestamps only about 72 hours back, so a trial that converts after 14 days reports on the conversion date.

Recurly → GA4 · what breaks

Why this join usually fails — Recurly → GA4

  1. 01

    The GA4 client_id never reaches Recurly

    Checkout may run through Recurly's hosted pages, and the renewal that actually matters happens months later with no browser session at all.

  2. 02

    Dunning recovery counted as acquisition

    A retried card that succeeds on day three looks identical to a new subscription in most exports. On a mature book that recovery is a meaningful share of monthly revenue and none of it was bought.

  3. 03

    Everything lands under (direct)/(none)

    The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.

  4. 04

    Nothing reconciles afterwards

    GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.

Recurly → GA4 · the fix

What working looks like — Recurly → GA4

  • The GA4 client_id on every subscription

  • Conversions arriving in GA4

    Conversions appear in GA4 attributed to the original session's source and medium, so acquisition reporting reflects what actually drove revenue.

  • Reconciled against the source

Recurly → GA4 · architecture

How Recurly and GA4 actually connect

  1. 1

    Recurly holds the truth

    Dunning recovery is Recurly's core product. Revenue rescued from a declined card three days after it failed is real money and it is not a conversion — attributing it to whatever campaign is running that week is the standard mistake here.

  2. 2

    GA4 needs a click to match

    GA4 needs the client_id to attach a server event to the user and session that produced the click. Without it there is no attribution to inherit and the event is orphaned.

  3. 3

    The identifier is the bridge

    The GA4 client_id, captured at the visit and carried into the Recurly subscription.

  4. 4

    The event source decides reliability

    Send new subscription starts at first successful payment. Renewals and dunning recoveries belong in separate figures.

  5. 5

    Deduplication at the destination

    GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.

Recurly → GA4 · normal or broken

Working vs. broken, side by side — Recurly → GA4

Normal, not a fault

  • The GA4 client_id present on the subscription

  • Sent from the Recurly subscription webhook

  • Deduplicated correctly

    GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.

  • Reconciles with the source

Actually broken

  • The GA4 client_id missing on most records

    Checkout may run through Recurly's hosted pages, and the renewal that actually matters happens months later with no browser session at all.

  • Sent from the browser

    A retried card that succeeds on day three looks identical to a new subscription in most exports. On a mature book that recovery is a meaningful share of monthly revenue and none of it was bought.

  • Counted twice, or not at all

    The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.

  • Nobody has reconciled it

Recurly → GA4 · diagnose

Diagnostic order — Recurly → GA4

  1. 01

    Count subscriptions carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Split subscription events into new, renewal and recovered

    Three categories, three owners. Until they are separated, no acquisition number is readable.

  4. 04

    Check whether server events carry a session and a source

    In GA4 Realtime or DebugView, find the event and look at its session and traffic source. A brand-new user with no source on every server event is the missing-client_id signature.

  5. 05

    Read the match rate, not the success message

    GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.

Recurly → GA4 · prove

How it gets proven — Recurly → GA4

Source of truth

Recurly subscriptions by start date, with recovered and involuntary-churn revenue held apart from new business.

  • The GA4 client_id confirmed present on a live subscription.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • New subscription starts reconciled against imported conversions, with recovered revenue reported separately.

Recurly → GA4 · free audit

What we check in the free audit

  • Count subscriptions carrying the GA4 client_id
  • Follow one real conversion end to end
  • Split subscription events into new, renewal and recovered
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Recurly subscriptions by start date, with recovered and involuntary-churn revenue held apart from new business.

Get my free conversion tracking audit

Free30 minutesNo obligation

Recurly → GA4 · when not to buy

When you don't need this — Recurly → GA4

  • Measure identifier coverage yourself first — pull your last hundred subscriptions and count how many carry the GA4 client_id.
  • If your churn is mostly voluntary and you run no dunning, this collapses to an ordinary subscription integration.
  • GA4 is reporting, not bidding. If your problem is ad platform optimization, fix the ad platform destination first — GA4 will not change what any campaign does.

Recurly → GA4 · what we deliver

What gets built — Recurly → GA4

  • Identifier capture into Recurly

    Capture on your own domain, persist against the account, and attach to the subscription so a renewal or a recovery can still be traced without being credited as new.

  • Event source: the Recurly subscription webhook

    Send new subscription starts at first successful payment. Renewals and dunning recoveries belong in separate figures.

  • Dispatch to GA4

    Measurement Protocol events with the client_id, session_id and the correct measurement ID and API secret, sent server-side.

  • Reversals where they exist

    Cancellations inside the first billing period reverse, and so should subscriptions that never recover from a failed first charge.

Written guarantee

95%+ tracking accuracy

Measured against Recurly subscriptions by start date, with recovered and involuntary-churn revenue held apart from new business.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Recurly → GA4 questions, answered

No. Send only the first payment as purchase; renewals sent later have no session and inflate revenue every month the subscriber stays.

Free · 30 min

Get Recurly and GA4 joined properly

Free30 minutesNo obligation