How to Transfer to Google Analytics 4
With Universal Analytics officially sunset, adapting to Google Analytics 4 isn't just an option anymore - it's a necessity. This article will guide you through the process of migrating your setup to GA4, explaining the essential differences and providing a clear, step-by-step plan to get your new property running correctly.
Why Did Google Switch to GA4 Anyway?
Universal Analytics (UA) was built for a simpler version of the internet, one dominated by desktop website sessions. It tracked users based on cookies and sessions, which became less reliable as people started using multiple devices, apps, and browsers throughout their day. The old model couldn't easily connect a user's journey from an app on their phone to a website on their laptop, leaving you with a disconnected puzzle.
GA4 moves away from this rigid, session-based model to a much more flexible, event-based one. Here's why that's a good thing:
- User-Centric Measurement: Instead of focusing on discrete sessions, GA4 focuses on users and the actions (or "events") they take. Whether it's a page view, a button click, a form submission, or an in-app purchase, it’s all tracked as an event. This gives you a single, unified view of a customer's journey across your website and app.
- Built for Modern Privacy: GA4 was designed without a reliance on third-party cookies, incorporating privacy controls and using machine learning to fill in data gaps when users opt out of tracking. This makes it more resilient in an increasingly privacy-focused digital landscape.
- Smarter Insights with AI: Machine learning is at the core of GA4, powering predictive metrics like purchase probability and churn probability. It can automatically surface important insights you might have otherwise missed.
The Big Differences: UA vs. GA4
The switch to GA4 feels like a huge change because it is. Your old way of finding reports and thinking about metrics needs to adapt. Here are the core differences at a glance.
The Measurement Model: Sessions vs. Events
Think of it this way: In UA, everything was organized into "Users › Sessions › Pageviews/Hits." A session was the container for everything a user did in one visit.
In GA4, everything is an event. A page_view is an event. A first_visit is an event. A scroll is an event. This might seem minor, but it completely changes the data structure. It allows you to define and track literally any interaction that matters to your business without being forced into UA's predefined categories like "Category," "Action," and "Label."
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.
Out with the Old Metrics, In with the New
Some memorable UA metrics have been retired. The most notable one is Bounce Rate. It’s been replaced with its opposite: Engagement Rate. An "Engaged session" is a visit that lasts longer than 10 seconds, has a conversion event, or has at least 2 pageviews. Your engagement rate is the percentage of sessions that were engaged. It's a much more nuanced way of understanding if users are finding your site useful beyond just visiting a single page.
How "Goals" Became "Conversions"
In Universal Analytics, you set up "Goals" - like destination page visits or specific event completions - to track desired actions. In GA4, this concept is simplified. Any event you are tracking can be marked as a "Conversion" with a simple flip of a switch. This gives you far more flexibility, allowing you to track up to 30 conversions per property (and many more for GA360 users).
Your Step-by-Step Guide to Transferring to GA4
If you already had a Universal Analytics property, Google likely created a basic GA4 property for you automatically. However, starting from scratch or ensuring an auto-created property is correctly configured is crucial. Follow these steps to ensure a proper setup.
Step 1: Use the GA4 Setup Assistant
The easiest way to start is from within your existing Universal Analytics account. This tool won’t migrate your historical data, but it will create a new GA4 property and copy some basic settings. Your Universal Analytics property remains unchanged.
- In your Universal Analytics account, navigate to the Admin section (look for the gear icon in the bottom-left corner).
- In the Property column, you'll see an option called GA4 Setup Assistant. Click on it.
- An overlay will appear. Click Get Started under "I want to create a new Google Analytics 4 property."
- The assistant will confirm the creation of your new property. It will copy basic settings like property name and website URL. Click Create property.
This creates the foundation, but now you need to actually add the tracking code to your website.
Step 2: Install Your GA4 Tracking Tag
Your new property has been created, but it's not collecting data yet. You need to connect it to your website so it can start receiving events. You have two primary ways to do this.
Method 1: Using Google Tag Manager (Recommended)
If you're already using GTM, this is the cleanest and most scalable method.
- Go to your new GA4 property. In the Admin section, under Data collection and modification, click on Data Streams.
- Click on the data stream for your website. You'll see your Measurement ID at the top right (it looks like
G-XXXXXXXX). Copy this ID. - In your Google Tag Manager container, go to Tags and click New.
- Click Tag Configuration and choose the tag type Google Analytics: GA4 Configuration.
- Paste your Measurement ID into the
Measurement IDfield. - Leave "Send a page view event when this configuration loads" checked.
- Under Triggering, select the All Pages trigger.
- Name your tag (e.g., "GA4 Config - Pageviews") and click Save.
- Finally, hit Submit and then Publish your container to make the changes live.
Method 2: Adding the Code Directly to Your Site
If you aren't using GTM, you can add the GA4 snippet directly to your website's code.
- Follow steps 1 and 2 from the GTM method to find your Data Stream.
- In the stream details, look for the section titled "View tag instructions." Here, you'll find the global site tag (gtag.js) snippet.
- Copy this entire code snippet.
- Paste it immediately after the
<head>tag on every page of your website. If you're using a CMS like WordPress or Shopify, there's usually a dedicated section in your theme settings to paste header scripts.
Step 3: Handle Key GA4 Property Settings
With data flowing, it's time to adjust a few basic settings for better reporting.
Increase Data Retention
By default, GA4 only stores user-level data 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.
Define Internal & Developer Traffic
You need to filter out your own team's visits to keep your data accurate.
- Go to Admin > Data Streams and click your web stream.
- Scroll down and click on Configure tag settings.
- Under Settings, click Show all, then click Define internal traffic.
- Click Create. Give your rule a name (e.g., "Office IP"). Use the settings to define your company's IP address.
- Next, go to Admin > Data Settings > Data Filters. You'll see a filter called "Internal Traffic." Click it, and change its state from "Testing" to "Active." Now, internal traffic matching your IP rule will be excluded from your reports.
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.
Step 4: Recreate Goals as Conversions
Your old UA Goals don’t transfer over automatically. You need to recreate your most important ones in GA4. The process revolves around events.
Example: Tracking a "Thank You" Page Conversion
Let's say a successful form submission sends users to yourwebsite.com/thank-you.
- Go to Admin > Events.
- Click on Create event and then Create.
- Give your custom event a name. Names should be lowercase with underscores, like
generate_lead. - Under matching conditions, set the following:
- Click Create. Now, every time someone views a page with "/thank-you" in the URL, GA4 will log your new
generate_leadevent. - Wait up to 24 hours for data to come in. Once you see
generate_leadappear in your events list (in Admin > Events), find it and toggle the switch under the Mark as conversion column. You're done!
Step 5: Link Google Products (Especially Google Ads)
If you run Google Ads, this step is non-negotiable. Linking it allows you to see ad campaign data in GA4, import conversions into Google Ads for better bid optimization, and build remarketing audiences.
- Go to Admin > Product Links.
- Here you'll see a list of Google products you can integrate with. Click on Google Ads.
- Click the Link button in the top right.
- Click Choose Google Ads accounts and select the ad account(s) you manage that have admin access. Click Confirm.
- Keep "Enable Personalized Advertising" on and click Next. Ensure "Enable Auto-Tagging" is activated, then submit your link.
- While you're here, it's also a great idea to link Google Search Console to see organic search query data in GA4.
Final Thoughts
Transferring to Google Analytics 4 is a foundational shift in how we measure digital engagement. Moving from a session-based perspective to a flexible, event-based model gives you a much clearer picture of your user journeys. Following the steps laid out in this guide will ensure your new GA4 property is properly configured to capture the data that truly matters to your business.
Connecting all your platforms - from Graphed, Google Ads, and social media channels to your CRM - is just the beginning. The next challenge is making sense of it all without spending hours hopping between tabs and wrangling spreadsheets. Instead of struggling to learn a brand new analytics interface, we built Graphed to let you connect your data sources in seconds and create dashboards just by describing what you want in plain English. For example, simply ask, "show me website sessions and conversions from Google Ads by campaign," and watch your dashboard appear instantly.
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.