Analytics

Universal Analytics is gone: moving a store to GA4

Universal Analytics is gone and its data cannot be moved. What GA4 does differently, how to rebuild goals and audiences, and eight settings to fix.

·6 min read·By the ROASaurus team

Key takeaways
  • Google stopped processing data in standard Universal Analytics properties on 1 July 2023 and has since shut UA down; GA4 is the only Google Analytics.
  • There is no migration of data: UA history does not carry over, so a store moving now starts GA4 with an empty property.
  • GA4 counts everything as events instead of sessions and pageviews, so goals become key events and audiences are rebuilt from events.
  • Eight settings are worth fixing right after setup, from unwanted referrals such as PayPal to internal traffic filters.
  • GA4 in the browser still misses purchases; sending purchases server-side through the Measurement Protocol closes much of that gap.

Universal Analytics (UA, sometimes called GA3) is gone. Google stopped processing new data in standard UA properties on 1 July 2023, and in Analytics 360 properties a year later, after which it shut down the UA interface and API. Google Analytics 4 (GA4) is now the only version. If your store still has a UA tag in its theme, it sends data nowhere, and if you never set up GA4, you have no Google Analytics data at all.

This guide explains what GA4 does differently, why nothing can be "migrated", how to rebuild your goals and audiences, and which settings to fix first on a store.

What is Google Analytics 4?

GA4 is not an update of Universal Analytics; it is a different product with a different data model. The main differences for a store:

Universal AnalyticsGA4
Data modelSessions and pageviews, with hits inside themEvents: every interaction is an event with parameters
GoalsDestination, duration and event goalsKey events (formerly conversions), marked on any event
EcommerceEnhanced ecommerce with its own hit typesRecommended ecommerce events such as view_item, add_to_cart and purchase
Web and appSeparate propertiesWeb and app streams in one property
AnalysisStandard reports and custom reportsStandard reports plus Explorations: funnels, paths, segments
PrivacyIP addresses storedIP addresses not stored; Consent Mode built in
GA4 works on a different model, which is why reports and numbers do not line up one to one.

Other capabilities that matter for ecommerce: predictive metrics such as purchase probability (once a property has enough data), audiences that can be shared with Google Ads, and a direct export of raw events to BigQuery. Session counts and conversion counts are calculated differently from UA, so do not expect the same numbers for the same period.

Why there is nothing to migrate

"Migrating to GA4" sounds like moving data from one tool to another. It is not. UA and GA4 are separate properties, and Google never offered a way to copy UA history into GA4. UA data could be exported while UA still existed; after the shutdown, it is gone from Google's side.

What does not carry over
  • Historical sessions, revenue and transactions
  • Views, filters and custom reports
  • Goals and segments as they were defined
What you rebuild in GA4
  • Key events for your goals
  • Audiences from events and conditions
  • Ecommerce tracking with GA4 events
  • Links to Google Ads and Search Console
A store moving to GA4 now starts with an empty property and builds forward.

How to set up GA4 and rebuild goals and audiences

  1. Create a GA4 property and a web stream

    In GA4 Admin, create a property in your store's time zone and currency, then add a web data stream for your domain. Note the Measurement ID (it starts with G-).

  2. Install the tag once

    On Shopify, use one method only: the Google & YouTube app, a custom pixel, or a tracking app. Remove any old UA tag from the theme and from checkout settings.

  3. Send ecommerce events

    Make sure the store sends GA4's recommended events, above all view_item, add_to_cart, begin_checkout and purchase with a transaction_id.

  4. Rebuild goals as key events

    For each UA goal, find the GA4 event that represents it (for example generate_lead for a contact form, or purchase), then mark it as a key event under Admin › Events. A destination goal becomes an event created from page views of that URL.

  5. Rebuild audiences

    Under Admin › Audiences, recreate the audiences you used, such as cart abandoners or past buyers, from events and conditions. Link Google Ads first if you want to use them for remarketing.

  6. Validate

    Use Tag Assistant and GA4's Realtime and DebugView reports to check that events arrive once, with the right values, before you rely on the reports.

Eight settings to fix after setup

A fresh GA4 property works, but some defaults do not suit a webshop. Fix these first, all under Admin:

SettingWhereWhy
1. List unwanted referralsData streams › your stream › Configure tag settingsPayment pages such as PayPal, Stripe or Klarna and shop.app otherwise take credit for orders as "referral" traffic.
2. Turn on Google signalsData collectionAdds cross-device and demographic data for signed-in Google users, within consent rules.
3. Link Search Console and Google AdsProduct linksBrings organic search queries and ad clicks into GA4, and lets Google Ads import key events and audiences.
4. Tag every campaign linkYour ads, emails and social postsWithout UTM tags, traffic from email and social is lumped in as direct or referral.
5. Switch off form interactions in enhanced measurementData streams › Enhanced measurementIts automatic form events fire on newsletter and search fields and add noise; track real leads yourself.
6. Adjust the session timeoutConfigure tag settings › Adjust session timeoutThe default 30 minutes can split a long browse-and-compare visit into two sessions.
7. Adjust the engaged session timerConfigure tag settings › Adjust session timeoutSets how many seconds count as an engaged session; pick a value that fits how long your product pages take to read.
8. Exclude internal trafficConfigure tag settings › Define internal traffic, then Data filtersYour own team's visits and test orders should not count as customers.
Exact menu names change from time to time; Google's help pages linked below have the current paths.

Our guide to UTM parameters for Google Ads and the one on UTM parameters for Meta and TikTok cover the tagging in step 4.

Why GA4 still misses purchases

A GA4 tag in the browser has the same limits as any pixel: ad blockers, declined consent, browsers that limit cookies and shoppers who close the tab before the thank-you page loads all stop the purchase event. The result is less revenue in GA4 than in Shopify, and channels that lose credit. Sending the purchase from your store's server through GA4's Measurement Protocol, with the visitor's GA4 client id and session id from the browser, recovers many of those orders without counting any twice, because the transaction_id is the same on both. See server-side tracking for Shopify for how the two sides fit.

GA4 in ROASaurus

ROASaurus can send purchases to GA4 server-side. Add Google Analytics 4 under Connections › Tracking & destinations with your Measurement ID and a Measurement Protocol API secret. Each paid order then goes to GA4 as a purchase event with the order id as transaction_id, using the _ga client id and the GA4 session the storefront script read, so the order lands in the visitor's own session. Refunds can be sent too. For visitors who did not consent, the event is sent without user data or identifiers. Each delivery is listed in Data quality › Deliveries.

To read GA4's own numbers next to your store data, connect Google under Connections › Channels; the GA4 report and explorer then appear under Website › Search › GA4.

Next step

Sources

  1. Google Analytics Help: Universal Analytics has gone away
  2. Google Analytics Help: Identify unwanted referrals
  3. Google Analytics Help: Define internal traffic
  4. Google Analytics: Measure ecommerce
  5. Google Analytics: Measurement Protocol (GA4)

In ROASaurus

Keep reading

AttributionUTM parameters for Google Ads: fixing Shopify attributionGoogle Ads clicks without UTM tags show up as organic or direct in Shopify. Where to set a final URL suffix, which parameters to use and what breaks.AttributionUTM parameters for Meta, TikTok and Pinterest adsUTM parameters for Meta, TikTok and Pinterest ads: where to paste them, the dynamic values each fills in, a naming system and the mistakes to avoid.TrackingServer-side tracking for Shopify: why and howWhy Shopify stores need server-side tracking and how it works: what the browser misses, the orders/paid webhook, deduplication, consent and setup.

FAQ

Questions, answered

More answers in the FAQ and the help center.

Will I lose my data moving from Universal Analytics to GA4?

UA data was never carried over to GA4, and Google has shut UA down, so its history is no longer available there. GA4 starts with the data it collects from the day it is installed.

When did Universal Analytics stop working?

Standard UA properties stopped processing new data on 1 July 2023, and Analytics 360 properties on 1 July 2024. Google then turned off the UA interface and API.

What makes GA4 better than Universal Analytics?

GA4 measures everything as events, combines web and app data, offers explorations such as funnels and paths, and has privacy features like Consent Mode built in. It is also the only version Google still develops.

How do I recreate my UA goals in GA4?

Find or create the event that represents each goal, for example generate_lead or purchase, and mark it as a key event in Admin. Destination goals become events created from page views of that URL.

Why does GA4 show less revenue than Shopify?

GA4 in the browser misses purchases blocked by ad blockers, declined consent or a thank-you page that never loads. Sending purchases server-side with the same transaction_id recovers many of them.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.