How to Switch from Universal Analytics to Google Analytics 4

Cody Schneider9 min read

Universal Analytics has been fully replaced by Google Analytics 4, and your old UA property can no longer process new data. This guide will walk you through a clear, step-by-step process to migrate to GA4, ensuring you don’t lose momentum in tracking your website’s performance.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Why Migrating to GA4 Is Non-Negotiable

The switch to Google Analytics 4 isn’t just an update, it's a fundamental shift in how user behavior is measured. Universal Analytics (UA) has been entirely sunsetted, and as of July 1, 2023, it stopped processing new website traffic. For most users, historical UA data became inaccessible in mid-2024. Sticking with your old setup is no longer an option - if you haven't switched, you're not collecting any data.

GA4 was built from the ground up for the modern web with a focus on privacy and the complete user journey. Here are the key differences:

  • Event-Based vs. Session-Based Model: UA was built around sessions and pageviews. Everything revolved around a user's "visit." GA4 is built around events. Every interaction - a page view, a scroll, a button click, a form submission - is tracked as a distinct event. This gives you a much more granular and flexible view of what users are actually doing.
  • Cross-Platform Tracking: UA struggled to track a single user across your website and mobile app. GA4 is designed to combine web and app data into a single property, giving you a unified view of the customer journey across devices.
  • Privacy-Centric by Design: GA4 was developed to be more privacy-conscious and is less reliant on cookies. It offers better controls and is built to adapt to a future with ever-changing privacy regulations.
  • AI-Powered Insights: With built-in machine learning, GA4 can provide predictive analytics, such as churn probability and potential revenue, helping you anticipate user actions before they happen.

Before You Begin: Your Pre-Migration Checklist

Jumping straight into the setup without a plan can lead to messy data. Take a moment to prepare. This is the perfect opportunity to clean house and refine what you're tracking.

1. Audit Your Current Universal Analytics Setup

First, take stock of what’s in your UA property. You don't need to - and probably shouldn't - replicate everything one-for-one. Many businesses find they were tracking dozens of outdated or redundant goals.

  • What goals and events are most important? Identify which conversions actually drive your business. Is it form submissions? Demo requests? Purchases?
  • Which reports do you use the most? Look at your go-to reports in UA. Note the key metrics and dimensions you rely on to understand performance.
  • Document custom implementations. Do you have any custom dimensions, metrics, or complex event tracking set up? List them out so you don't forget them during migration.

2. Create a GA4 Measurement Plan

Instead of just copying your old setup, think about what you want to measure. Your business questions should guide your measurement strategy, not the old platform's limitations.

The biggest change will be mapping your UA events (based on Category, Action, and Label) to GA4's event-and-parameter model. In GA4, you have a flexible event name and can attach multiple descriptive "parameters" to it.

For example, a UA event might look like this:

  • Event Category: Form Submission
  • Event Action: Contact
  • Event Label: Header Nav_Button

In GA4, you would consolidate this into a more descriptive event:

  • Event Name: contact_form_submit
  • Parameters:

Use a simple spreadsheet to map your crucial UA events to their new GA4 structure. It will save you a lot of confusion later.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Your Step-by-Step Guide to the GA4 Migration

Once you’ve done your prep work, you’re ready to get started. The migration itself is a technical process, but it's very manageable if you take it one step at a time.

Step 1: Create Your GA4 Property with the Setup Assistant

Google has made this initial step quite simple. The GA4 Setup Assistant creates your new property without disrupting your current UA setup, allowing them to run in parallel while you configure everything.

  1. Log into your Google Analytics account and navigate to the Admin section (the gear icon in the bottom-left corner).
  2. In the Property column, ensure your Universal Analytics property is selected.
  3. Click on GA4 Setup Assistant. It should be the first option in the list.
  4. Under "I want to create a new Google Analytics 4 property," click the Get Started button.
  5. A pop-up will appear. As long as your site uses the global site tag (gtag.js) or is connected through Google Tag Manager, leave the "Enable data collection using your existing tags" checkbox selected. Click Create property.

That's it! Google has now created a new GA4 property that is linked to your existing Universal Analytics property. Now it's time to set up data collection.

Step 2: Install the GA4 Tracking Tag

Your new GA4 property exists, but it isn't collecting any data yet. To start, you need to add its tracking tag to your website. You can find your GA4 tracking code by going to Admin → Data Streams → selecting your new data stream → and looking for your "Measurement ID" (it starts with "G-").

Method 1: Using Google Tag Manager (Recommended)

If you're already using GTM, this is the cleanest and most scalable method.

  1. In your GTM container, go to Tags → New.
  2. Click on Tag Configuration and choose Google Analytics: GA4 Configuration.
  3. Paste your GA4 Measurement ID ("G-...") into the corresponding field.
  4. Under Triggering, select All Pages to make this tag fire on every page of your website.
  5. Name your tag (e.g., "GA4 Config - [Your Measurement ID]"), save it, and Submit your changes to publish the container.

Method 2: Using a CMS Plugin (e.g., WordPress)

If your website runs on a platform like WordPress, you can often use a plugin to install the code without touching a single file. Plugins like Google Site Kit, SEOPress, or MonsterInsights have a dedicated field where you can simply paste your GA4 Measurement ID and they'll handle the rest.

Method 3: Adding the Code Manually

If you don't use GTM or a CMS plugin, you can add the GA4 global site tag (gtag.js) directly to your website's code. In GA4, go to the Data Stream details page and look for "View tag instructions." Copy the full JavaScript snippet and paste it immediately after the <head> tag on every page of your site.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Step 3: Configure and Migrate Your Events

With data flowing, your next task is to set up event tracking. GA4 handles some of this for you automatically.

Enable Enhanced Measurement

Out of the box, GA4 can automatically track common interactions. Go to Admin → Data Streams and click your web stream. Make sure Enhanced measurement is turned on. By default, this tracks:

  • Page views
  • Scrolls (when a user reaches 90% of the page)
  • Outbound clicks
  • Site search
  • Video engagement
  • File downloads

For many sites, this already covers a lot of meaningful user behavior that you had to set up manually in UA.

Map and Recreate Custom Events

Now, refer back to the measurement plan you created earlier. You need to tell GA4 how to track the custom interactions that are unique to your business, like form submissions or newsletter signups. If you're using Google Tag Manager, you'll create new "GA4 Event" tags that fire on specific triggers (like a form submission success) and send data to your GA4 configuration tag.

For example, to track a quote request, you might create a new GA4 Event tag in GTM:

  • Event Name: generate_lead
  • Event Parameters: Add a parameter called form_type with the value quote_request.
  • Trigger: Set the trigger to fire when the quote request form is successfully submitted.

Step 4: Set Up Conversions

In Universal Analytics, you created "Goals" to track important actions. In GA4, any event you collect can be turned into a "Conversion" with a single click.

To do this:

  1. First, make sure the event you want to track is being sent to GA4 (e.g., your generate_lead event). Test it and wait for it to appear in your event reports.
  2. Go to Admin, and in the Property column, click on Events.
  3. You will see a list of all events being collected. Find your custom event line item.
  4. On the right side of the row, simply toggle on Mark as conversion.

Moving forward, GA4 will count every instance of the generate_lead event as a conversion in your reports.

Step 5: Link Products and Manage Users

To get the most out of your data, you need to connect GA4 to your other Google marketing tools. Go to Admin → Product Links and link your Google Ads and Google Search Console accounts. This will allow you to see ad performance and search query data directly within GA4's reporting interface.

Finally, don't forget to add your team members as users to the new GA4 property under Admin → Property Access Management.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

What to Do After Migrating

1. Validate Your Setup

Don't assume everything is working perfectly. Use GA4's DebugView to test your tags and events in real-time. Navigate through your site, trigger your conversion events, and watch DebugView to confirm that the tags are firing correctly and the data is flowing as expected.

2. Build Your New Historical Record

Since your UA historical data is no longer accessible, the clock is ticking on building a new data set in GA4. The longer you have accurate data collection running, the sooner you'll be able to perform meaningful year-over-year or month-over-month analysis. Treat your GA4 data integrity as a top priority from day one.

3. Get Familiar with the New GA4 Reports

The GA4 interface is very different from UA. Standard reports are more concise, and most deep analysis happens in the Explore section, where you can build custom reports from scratch using different visualization techniques like funnels, path explorations, and free-form tables.

Final Thoughts

Switching from Universal Analytics to GA4 is no longer a choice - it’s a necessity for continued data collection. By breaking down the process into auditing your old setup, creating a thoughtful measurement plan, and following the technical setup steps, you can make the transition smooth and effective. The new event-based model is far more powerful and will give you a deeper understanding of your users.

The learning curve for GA4 reports can be steep, especially after years of UA's familiar interface. At Graphed, we remove that friction completely. Instead of building complex "Explorations" to answer basic questions, our AI data analyst lets you connect your GA4 account and create dashboards using plain English. You can simply ask things like, "What were my top 10 landing pages by conversions from GA4 last month?" or "Create a dashboard showing GA4 sessions, engaged sessions, and conversions by source/medium for the quarter," and instantly get the answers you need in a live, interactive dashboard.

Related Articles