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.
Example: a store with 100 subscribers on a $30 monthly plan, after 6 months. GA4 only sees first payments.
- First checkoutBrowser fires purchase
- Renewal dateBilling system charges the card
- Browser tagNo page load, no tag runs
- GA4 purchaseNever received
- 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
Pick a subscriber who has renewed
Find a customer in Stripe, WooCommerce Subscriptions, Shopify or your billing tool with at least one renewal payment.
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.
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.
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.
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.
Save the client_id at first purchase
At the first checkout, read the GA4 client ID from the
_gacookie (or viagtag('get', 'G-XXXX', 'client_id', cb)) and store it on the customer or subscription record.Hook into the renewal success event
Run your code when a renewal payment succeeds, for example the Stripe
invoice.paidwebhook (checkbilling_reasonissubscription_cycle) or a WooCommerce Subscriptions renewal order completing.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.
Test in DebugView and validate
Use the validation endpoint first, then send a test event with a
debug_modeparameter and check Admin > DebugView.
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
}]
}
}]
}'Use a renewal hook
With WooCommerce Subscriptions, hook into
woocommerce_order_status_completedorwoocommerce_subscription_renewal_payment_completeand send the Measurement Protocol request withwp_remote_post.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.
Use a webhook
Your subscription app creates recurring orders. Subscribe to the
orders/createwebhook (or the app's own renewal webhook) in a small server or automation tool and send the purchase to GA4 for orders that are subscription renewals.Check your subscription app
Some subscription apps have a GA4 or Measurement Protocol setting. Look in the app's integrations settings.
Handle the billing webhook
In Stripe, listen for
invoice.paidwherebilling_reasonissubscription_cycle. Look up the stored client_id and send the event shown above.Make it idempotent
Webhooks can be delivered more than once. Keep a record of sent transaction_ids so you never send the same renewal twice.
Use a server container if you have one
A web container cannot see renewals. With a server-side GTM container, your billing webhook can post to it and a GA4 tag can forward the purchase.
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
- 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
- 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.
Related issues
- TRK-077purchase event missing on order confirmationFix guide
- TRK-078purchase sent without transaction_idFix guide
- TRK-079purchase fires twice (refresh of thank-you page)Fix guide
- TRK-093Refunds not sent to GA4Fix guide
- TRK-097Upsell / one-click post-purchase not trackedFix guide
- TRK-098Purchase tracked only when customer returns from PayPal/3DS redirectFix guide