Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Subscription renewals not tracked as purchases in GA4: fix

TRK-096Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

When a customer first subscribes, they pass through checkout and your GA4 purchase event fires in their browser. Every later renewal is different. Your payment provider or subscription plugin charges the saved card automatically, usually from a scheduled job on a server. No page loads, so no tag runs.

Why it costs you leads or sales

The direct loss is reporting, not a broken checkout, so the impact is usually low. But it skews decisions. Channels that bring customers who renew for years look the same as channels that bring one-month customers. Revenue in GA4 will not match your billing system, and lifetime value looks lower than it is.

Revenue seen in GA4 vs billing systemExample numbers
Revenue seen in GA4 vs billing system (example)GA4 revenue: 3,000 $; Billing system revenue: 18,000 $06,90013,8003,00018,000GA4 revenueBilling system revenue$

Example: a store with 100 subscribers on a $30 monthly plan, after 6 months. GA4 only sees first payments.

Where a renewal drops out of tracking
  1. First checkoutBrowser fires purchase
  2. Renewal dateBilling system charges the card
  3. Browser tagNo page load, no tag runs
  4. GA4 purchaseNever received
  5. Ads and reportsRenewal revenue missing

The charge succeeds, but no browser is involved, so nothing is sent to GA4.

How to check if your site has it

Compare GA4 with your billing system
  1. Pick a subscriber who has renewed

    Find a customer in Stripe, WooCommerce Subscriptions, Shopify or your billing tool with at least one renewal payment.

  2. Search GA4 for the renewal order

    In GA4 go to Reports > Monetization > Ecommerce purchases, or build an Explore report with the dimension Transaction ID. Search for the renewal's order or invoice ID.

  3. Compare totals for one month

    Compare the number of purchases in GA4 with the number of successful charges in your billing system. If GA4 is close to your count of new subscribers only, renewals are missing.

  4. Check for server-side sending

    Ask your developer or check your plugin settings: is anything sending events to GA4 from the server? If not, renewals are not tracked.

How to fix it

The approach is the same everywhere: when a renewal payment succeeds, your server sends a purchase event to GA4 through the Measurement Protocol, which is Google's HTTP API for sending events from servers. Each event needs three things: the customer's client_id (saved at signup), a unique transaction_id for that renewal, and the value and items.

Send renewals to GA4
  1. Create an API secret

    In GA4 go to Admin > Data streams > your web stream > Measurement Protocol API secrets and create a secret. Keep it private and server-side only.

  2. Save the client_id at first purchase

    At the first checkout, read the GA4 client ID from the _ga cookie (or via gtag('get', 'G-XXXX', 'client_id', cb)) and store it on the customer or subscription record.

  3. Hook into the renewal success event

    Run your code when a renewal payment succeeds, for example the Stripe invoice.paid webhook (check billing_reason is subscription_cycle) or a WooCommerce Subscriptions renewal order completing.

  4. Send the purchase event

    POST a purchase event with the stored client_id, a unique transaction_id (the renewal order or invoice ID), currency, value and items.

  5. Test in DebugView and validate

    Use the validation endpoint first, then send a test event with a debug_mode parameter and check Admin > DebugView.

Measurement Protocol purchase for a renewalbash
curl -X POST 'https://www.google-analytics.com/mp/collect?measurement_id=G-XXXXXXX&api_secret=YOUR_API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
    "client_id": "1234567890.1700000000",
    "events": [{
      "name": "purchase",
      "params": {
        "transaction_id": "INV-2024-0042",
        "currency": "USD",
        "value": 30.00,
        "items": [{
          "item_id": "plan_monthly",
          "item_name": "Monthly plan",
          "price": 30.00,
          "quantity": 1
        }]
      }
    }]
  }'
Where to add this on common platforms
  1. Use a renewal hook

    With WooCommerce Subscriptions, hook into woocommerce_order_status_completed or woocommerce_subscription_renewal_payment_complete and send the Measurement Protocol request with wp_remote_post.

  2. Or check your analytics plugin

    Some GA4 plugins offer server-side or Measurement Protocol purchase tracking. Check whether it covers renewal orders, as many only track the checkout page.

GA4 renewal tracking

Before

  • Only first payments appear in GA4
  • Revenue is far below billing totals
  • Renewals have no traffic source link

After

  • Each successful renewal sends one purchase
  • GA4 revenue is close to billing totals
  • Each renewal tied to the customer's stored client_id

How to confirm it's fixed

Confirmation checklist
  • A test event shows in Admin > DebugView
  • The validation endpoint (/debug/mp/collect) returns no validation messages
  • A real renewal appears in Ecommerce purchases with the right Transaction ID
  • Value and currency match the invoice
  • Re-sending the same webhook does not create a second purchase
  • Monthly GA4 purchase count is close to successful charges in billing

How to prevent it happening again

Prevention
  • Reconcile GA4 purchases with billing totals once a month
  • Log every Measurement Protocol response and alert on errors in your own system
  • Re-test after changing subscription plugins, billing providers or API secrets
  • Document where the client_id is stored so it survives migrations

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. FunnelGuard runs real customer journeys in a browser, such as forms and checkouts, and checks the tracking hits they send. A renewal is a server-side charge with no browser path, so there is nothing for a robot visitor to run. The kind of tool that fits is server-side or data reconciliation monitoring: logging on your billing webhooks, or a report that compares GA4 purchases with your billing system. FunnelGuard can still watch the first checkout, where the browser purchase event fires.

Frequently asked questions

Questions people ask

Why are my subscription renewals not showing in GA4?

Renewals are charged by your billing system on a schedule, with no customer on your site. GA4's browser tag only runs when a page loads, so no purchase event is sent. You need to send the event from the server.

How do I track recurring payments in GA4?

Use the GA4 Measurement Protocol. When a renewal payment succeeds, send a purchase event from your server with the customer's stored client_id, a unique transaction_id, currency, value and items.

Where do I get the client_id for a Measurement Protocol purchase?

Read it in the browser at the first visit or checkout, from the _ga cookie or with gtag's get command, and store it with the customer or subscription record. Your server then reuses it for each renewal.

Should renewals be a purchase event or a custom event?

Either works. Using purchase keeps revenue reports complete, but it mixes new and recurring revenue. A custom event such as subscription_renewal keeps them apart, but you must build your own reports for it.

Can Google Tag Manager track subscription renewals?

A normal web container cannot, because it runs in the browser. A server-side GTM container can receive a webhook from your billing system and forward a purchase to GA4.

How do I stop renewal purchases being counted twice?

Send a unique transaction_id for each renewal, such as the invoice ID, and store the IDs you have sent. Webhooks can arrive more than once, so check before sending.

Does Stripe send renewals to GA4 automatically?

No. You need to listen for a webhook such as invoice.paid and send the event to GA4 yourself, or use an integration that does it for you.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.