How to Track Retention Revenue in Google Analytics 4
Track retention campaign revenue in Google Analytics 4: verify the purchase event, tag links with UTMs, then check repeat buyers against Shopify order history.

To track retention revenue in Google Analytics 4, make sure your purchase event is correct, tag every campaign link with consistent UTM parameters, and read purchases by session campaign. Then answer the question Analytics cannot: was the buyer a repeat customer? That comes from your Shopify orders, not from Analytics.
This is a measurement workflow, so it works with any tool that sends your messages. Tranthor, which publishes this blog, lists Google Analytics as an available connection that adds web behavior context. Everything below about Google comes from Google's own documentation.
What Analytics can and cannot answer
Keep three questions apart, because three different systems answer them.
| Question | Where the answer lives | What it does not tell you |
|---|---|---|
| Which campaign gets credit for this visit and purchase? | Google Analytics, through UTM parameters | Whether the buyer ordered before |
| Was this buyer a repeat customer? | Shopify order history | Which campaign they saw |
| Did the campaign add orders? | A held-back comparison group | Anything, unless you set the group up in advance |
A person who clicks a win-back email and buys is credited to that email in Analytics. If they were about to reorder anyway, they are still credited. That is attribution, and it is useful, but it is not proof of cause. Our guide to how results are measured describes the held-back approach Tranthor uses.
Step 1: Verify the purchase event
A campaign report cannot fix a broken purchase event. Check these before you build anything.
- Look for a unique
transaction_id. Google's event reference liststransaction_idas always required onpurchase, and says Analytics deduplicates purchase events that share one. An empty string is a problem too, because every purchase with an empty ID is deduplicated together. - Check
valueandcurrency. Google says to setvalueto the sum of price times quantity for all items, without shipping or tax, and to send a three-letter ISO currency code when you set a value. - Look for duplicate senders. If a native Shopify connection and a separate tag both report the same order, you need to know which one is live.
- Run a test order in DebugView. Add
debug_mode: trueto your configuration, then open Admin, Data display, DebugView. Google notes that setting the parameter to false does not turn debug mode off; you remove it.
The result you want is one test order, one event, with the order's ID, a correct value and the right currency.
Step 2: Tag every link with UTM parameters
UTM parameters are how Analytics knows a visit came from a retention message.
- Always set three. Google says to use
utm_source,utm_mediumandutm_campaign. Missing values show up as "(not set)" in reports. Google also strongly recommendsutm_id. - Use
utm_contentfor variants. Google describes it as a way to tell apart creatives, such as two links in the same email. - Stay lowercase. Parameter values are case sensitive, so
Emailandemailare separate rows, as areSpringSaleandSpring_Sale. - Pick fixed values per channel. For example,
utm_medium=emailandutm_medium=sms. Write them down once and reuse them. - Name the campaign by the moment.
utm_campaign=second_purchase_nov_2026tells you more in six months thannewsletter12.
Then click the real link from the real message, not a pasted URL. Confirm the final landing page still carries the parameters. Redirects and link shorteners are the places parameters most often get lost, so test the exact link a customer would tap.
Check what your sending tool appends on its own. Most tools add some parameters automatically, and a tool's defaults may not match your naming. This applies to any sender, Tranthor included, so test a real message before you rely on the report.
Never put a customer's email address or phone number in a link. Google's policy says no data should be passed to Google that it could recognize as personally identifiable information, and lists email addresses and mobile numbers as examples. It also warns that such data can slip into page URLs and titles, so check those.
Step 3: Build one campaign view
In GA4, start from the acquisition reports, where session source and medium are available, and add session campaign as a dimension. Look at sessions, purchases and revenue. Filter to the campaign names you created so acquisition traffic does not drown them out.
Use a fixed window, such as 28 days, and use the same dates in Shopify. That window is a choice, not a benchmark.
Step 4: Check who was a repeat buyer
For the same dates, export Shopify orders and count the orders placed by customers who had an earlier order. Decide up front how to treat cancelled, refunded and test orders, and apply that rule every time.
Keep the outputs in separate columns:
- Revenue credited to the campaign in Analytics.
- Revenue from repeat customers in Shopify.
- Size of the audience that was eligible to receive the message.
Do not add the first two together. They overlap.
Step 5: Explain the gaps
Analytics and Shopify will not match, and that is normal. Work through the causes before you change any tags.
| Symptom | Likely cause |
|---|---|
| Analytics revenue is lower than Shopify | Visitors who declined tracking, blocked scripts, or an event that did not fire |
| Analytics revenue is higher | Duplicate purchase events, or refunds and cancellations that Shopify reflects and Analytics does not |
| Purchases show but the campaign is "(not set)" | Parameters stripped by a redirect, or a missing utm_campaign |
| Repeat revenue looks too high | You used returning users instead of order history |
| Totals differ by a few percent | Tax and shipping, time zones, or a different cut-off date |
Step 6: Measure lift if you need proof
If you need to know what a campaign added, plan it before you send. Hold back a random group of eligible customers, send to the rest, and compare orders in each group over the same window. Tranthor keeps a random group out of its sends on the campaigns you choose to measure and shows lift as a range with a plain verdict once enough held-back customers have bought. You can run the same design by hand with any sender.
Analytics will not give you this on its own, and neither will a platform's attributed revenue figure. For a view of where your repeat rate stands before you measure anything, the retention check pulls three numbers from your store.
Related reading
- Shopify win-back email campaign
- Repeat purchase rate
- Best customer retention software for ecommerce
- How Tranthor measures results
Sources (read November 2026): Collect campaign data with custom URLs, GA4 purchase event reference, Deduplication of purchase events, DebugView, Google's PII policy.
Frequently asked questions
How do I track retention campaign revenue in Google Analytics 4?
Confirm your purchase event fires with a unique transaction ID, add UTM parameters to every link in the campaign, then read purchases and revenue by session campaign in your acquisition reports. Check repeat-buyer status separately against Shopify order history, because Analytics does not know who ordered before.
Does Google Analytics show revenue from repeat customers?
Not directly. GA4 can report returning users, but a returning user is a person who visited again, not necessarily a person who bought again. To count repeat-customer revenue, match order records to customers who had an earlier order in Shopify.
Which UTM parameters should I use for email, SMS and WhatsApp?
Google's documentation says to always use utm_source, utm_medium and utm_campaign, and recommends setting utm_id as well. Use a lowercase, fixed value for each channel, such as email or sms, and keep the campaign name the same across every message in the campaign.
Why does Google Analytics revenue not match Shopify?
The two systems count differently. Google defines purchase value without tax or shipping, Analytics only sees sessions where its tag loaded and consent allowed collection, and Shopify tracks refunds and cancellations in the order. Compare the same dates, time zone and definitions before assuming something is broken.
Can I send customer emails or phone numbers to Google Analytics?
No. Google's policy prohibits sending data it could recognize as personally identifiable information, and lists email addresses and mobile phone numbers as examples. That includes campaign URLs, so never put a customer's email or phone number in a link parameter.
Does Tranthor connect to Google Analytics?
Tranthor lists Google Analytics as an available connection that adds web behavior context. Tranthor's own results show revenue from orders linked to the team's sends, with lift against a held-back group on the campaigns you choose to measure. Treat Analytics as a second, session-based view, not a replacement.
Does attributed revenue prove a retention campaign worked?
No. Attribution credits an order to a message under a rule. A customer who was about to reorder anyway still shows up as credited. A held-back comparison group is the way to estimate what the campaign added.
Keep reading

ActiveCampaign Alternatives for Ecommerce Brands
ActiveCampaign alternatives for ecommerce by situation: Klaviyo, Omnisend, Mailchimp or Tranthor. Details read from vendor pages in November 2026.

Best Ecommerce Customer Segmentation Tools: What You Can Filter On
Compare ecommerce customer segmentation tools by what you can filter on and the data each predictive feature needs: Shopify, Klaviyo, Omnisend, Tranthor.

Customer.io Alternatives for Shopify: Who Each One Suits
Customer.io alternatives for Shopify by situation: Klaviyo, Omnisend, Braze or Tranthor. Prices and channels checked on each vendor's page in November 2026.