How to Migrate Google Analytics
Switching your website to Google Analytics 4 can feel like a daunting, high-stakes project, but it's a necessary step to keep your analytics running. This guide will walk you through the entire migration process, breaking it down into clear, manageable steps so you can make the switch with confidence.
Why Is Migrating to Google Analytics 4 Necessary?
Universal Analytics (UA), the version of Google Analytics most of us have used for years, stopped processing new data in July 2023. This means that if you haven’t migrated yet, you aren’t collecting any new information about your website traffic. Furthermore, Google will eventually remove access to historical UA data, making migration essential for preserving your analytics workflow.
While the required switch might seem like a hassle, GA4 offers significant advantages over its predecessor:
- User-Centric Measurement: GA4 uses a flexible, event-based model that tracks user interactions (like scrolls, clicks, and form submissions) instead of just page views. This gives you a much clearer picture of the entire customer journey.
- Cross-Platform Tracking: It's built to track users seamlessly across websites and mobile apps, providing a unified view of your audience.
- Privacy-Focused by Design: GA4 offers better privacy controls, like IP anonymization by default, to help you navigate a world without cookies.
- Smarter Insights with AI: With built-in machine learning, GA4 can surface predictive metrics, like purchase probability and churn probability, helping you stay ahead of trends.
Before You Begin: Your Pre-Migration Checklist
A little planning goes a long way. Before jumping into the GA4 Setup Assistant, take a few moments to prepare your account. This ensures a smoother, more accurate migration.
1. Audit Your Current Universal Analytics Setup
Think of this as decluttering before you move. Not everything from your UA property needs to come over to GA4. Log into your Universal Analytics account and document the things that actually matter to your business:
- Key Reports: Which reports do you or your team check weekly? (e.g., Channel reports, popular pages, landing page performance).
- Goals & Conversions: Go to Conversions > Goals > Overview. What actions are you tracking as conversions? Differentiate between critical conversions (e.g., form submissions, purchases) and micro-conversions (e.g., newsletter sign-ups, video plays).
- Custom Events: Navigate to Behavior > Events > Top Events. What custom interactions are you tracking (like button clicks or file downloads)? Write down the Category, Action, and Label for each important event.
- Custom Dimensions & Metrics: Do you have any custom dimensions set up to track specific data like user persona, author, or post category? Make a note of them.
This audit prevents you from migrating outdated or irrelevant tracking, giving you a clean slate in GA4.
Free PDF · the crash course
AI Agents for Marketing Crash Course
Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.
2. Map Your Old Conversions and Events to the GA4 Model
Universal Analytics and GA4 think about data differently. UA uses a rigid 'Category, Action, Label' structure for events, while GA4 uses a flexible 'Event Name' with associated 'Parameters'. Take your list from the audit and start mapping.
For example:
- A UA event with Category: 'Form', Action: 'Submit', Label: 'Contact Us Page' becomes a GA4 event with the Event Name:
form_submissionand a custom Parameter calledform_namewith a value of 'Contact Us Page'. - A UA goal based on a destination URL (like
/thank-you) becomes a GA4 conversion event. In GA4, you’ll mark a specificpage_viewevent as a conversion when the URL matches/thank-you.
Getting this down on a spreadsheet will save you a ton of time and confusion later.
3. Choose Your Implementation Method
How will you add the GA4 tag to your website? You have a few options:
- Google Tag Manager (Recommended): If you’re already using Google Tag Manager (GTM), this is the most flexible and powerful way to manage your GA4 implementation. It allows you to set up all your tags in one place without touching your website’s code.
- Global Site Tag (gtag.js): If the Google Analytics tracking code is hardcoded in your website's HTML, you’ll be adding a configuration line for GA4 to your existing snippet.
- CMS Plugin: Many website platforms like WordPress, Shopify, and Wix have integrations or plugins that make it easy. You typically just need to paste in your new GA4 Measurement ID.
Step-by-Step Migration Guide Using the GA4 Setup Assistant
The Setup Assistant is Google’s tool to streamline the initial property creation. It automates some basic steps but leaves the more important configuration tasks to you.
Step 1: Open the GA4 Setup Assistant
In your Universal Analytics property, click on the Admin gear icon in the bottom-left corner. In the Property column, you'll see a prominent option: GA4 Setup Assistant. Click on it.
Step 2: Create Your New GA4 Property
Under the "I want to create a new Google Analytics 4 property" section, click the blue Get started button. A pop-up will appear. The wizard will create a new GA4 property and copy some basic settings like your property name, URL, and timezone from UA. Crucially, this process does not change or remove your existing Universal Analytics property.
Click Create and continue. The assistant will then set up the property. Once it's done, you'll see a message saying "You have successfully connected your properties."
Step 3: Install Your Google Tag
This is the most critical manual step. The Setup Assistant creates the property, but it doesn't automatically start collecting data unless you are already using the gtag.js library properly configured to do so. In most cases, you need to tell your website to start sending data to your new GA4 property.
- In your new GA4 property, go to Admin > Data Streams and click on your website data stream.
- Your Measurement ID (formatted as G-XXXXXXXXXX) is at the top right. Copy this ID.
- Now, add the ID using your chosen method from the checklist:
Step 4: Configure Your GA4 Property Settings
With an active data stream, it's time to mirror the important settings from your UA property audit.
Recreate Conversions
In GA4, nearly any event can be turned into a conversion with a single click.
- Go to Admin > Events in your new GA4 property.
- You'll see a list of events coming in from your website.
- Find the events you identified as key conversions in your audit (like
purchase,lead, or your customform_submissionevent). - Simply toggle the switch in the "Mark as conversion" column. That’s it! Any future instances of that event will be counted as a conversion.
Rebuild Custom Events
If you're using Google Tag Manager, this process is straightforward. For each custom event you mapped out earlier:
- In GTM, create a new tag and select "Google Analytics: GA4 Event".
- Select your GA4 Configuration Tag.
- In the Event Name field, enter the new, clean event name (e.g.,
form_submission). - Under Event Parameters, you can add context. Click "Add row" and define the parameter name (e.g.,
form_name) and its value (which could be the page path or a form ID). - Set up a trigger for when this event should fire, just like you did for Universal Analytics.
Extend Data Retention
By default, GA4 only keeps granular user-level data (for use in the Explore reports) for 2 months. You'll want to extend this immediately.
- Go to Admin > Data Settings > Data Retention.
- Change the "Event data retention" dropdown from 2 months to 14 months.
- Click Save.
Link Google Ads
If you run Google Ads, you must re-link your account to GA4 to import conversions and use analytics audiences in your campaigns.
- Go to Admin > Product Links > Google Ads Links.
- Click the blue Link button, choose your ad account, and follow the configuration prompts.
After the Migration: Verification and Next Steps
You’ve done the hard part, but before you call it a day, it’s crucial to verify that everything is working as expected.
1. Use DebugView to Test Your Setup
DebugView is a fantastic real-time troubleshooting tool within GA4. Enable GTM’s preview mode or use the Google Analytics Debugger Chrome extension. Then, in GA4, go to Admin > DebugView. As you click around your site and trigger events, you’ll see them appear in this report almost instantly, allowing you to confirm that your tags, events, and parameters are firing correctly.
Free PDF · the crash course
AI Agents for Marketing Crash Course
Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.
2. Run GA4 and UA in Parallel
Don't remove your Universal Analytics tag just yet. It's wise to run both for a few weeks or months. This allows you to compare the data coming into both platforms (it won’t match perfectly due to different measurement models, but should show similar trends) and gives your team time to get comfortable with the new GA4 interface. It also lets you build up some historical data in GA4 before UA access is completely removed.
3. Archive Historical Universal Analytics Data
Eventually, Google will turn off access to the Universal Analytics interface, and your historical data will be gone forever. Don't let years of data disappear. Before that happens, export your most important reports as CSVs, PDFs, or use Google's spreadsheet add-on to save your core performance data for future reference.
Final Thoughts
Executing a successful migration from Universal Analytics to GA4 comes down to a methodical approach. By auditing your current setup, carefully configuring your new property and tags, and meticulously verifying that data is flowing correctly, you can navigate the transition smoothly and start taking advantage of Google's more powerful analytics platform.
Once you have all that rich, event-based data streaming into GA4, the next challenge is quickly turning it into actionable reports. Instead of struggling to rebuild all your dashboards in GA4's new interface, we built Graphed to simplify the process entirely. We connect directly to your Google Analytics 4 property and let you use simple, conversational language to get answers, build reports, and create real-time dashboards in seconds - no more wrangling with funnels or filters. It’s the easiest way to translate your new data into business insights.
Related Articles
How to Create Facebook Ads API for Claude Code
Create a Meta Marketing API access token that never expires, using a system user, so Claude Code can pull Facebook ad reports and manage campaigns.
ClickHouse vs Postgres: When to Switch to Columnar
Comparing ClickHouse vs PostgreSQL means matching storage architecture to workload. Row storage wins for transactions. Columnar wins for scan-heavy analytics.
Google Ads for Orthodontists: Get More Booked Consults
Most orthodontic Google Ads campaigns waste money on low-intent searches. The problem is structure, not the platform.