Skip to content
All insights

The ultimate guide to migrating to Google Analytics 4

5 min · · Quested

A step-by-step guide to setting up Google Analytics 4, configuring data streams and enhanced measurement, and moving your reporting across.

Introduction

In the ever-evolving world of digital marketing, having accurate and insightful data is crucial. This is where Google Analytics comes to play, providing valuable insights into your website’s performance. Google Analytics 4 (GA4) is now the only version of Google Analytics, so this guide walks through setting it up properly and moving your reporting across.

GA4 brings a host of new features and improvements, empowering businesses to gain a better understanding of their customers and make data-driven decisions. So, let’s get started with this step-by-step guide on how to migrate to Google Analytics 4.

Set up Google Analytics 4

The first step is to create a new Google Analytics 4 property. Log in to your Google Analytics account and navigate to the Admin section. From there, click on ‘Create Property’ and follow the prompts to set up your new GA4 property. Once created, you’ll receive a unique Measurement ID that you’ll need to integrate into your website.

Now update your website’s tracking code. If an old Universal Analytics tag is still on the site, remove it and add the GA4 Measurement ID instead, so that all data is collected in the GA4 property.

Configure data streams

Data Streams are an important part of GA4 as they collect specific data from different platforms. In this step, we’ll configure data streams for your website and any other platforms you want to track.

The core GA4 setup, in order.

To set up a data stream for your website, go to your GA4 property, select ‘Data Streams’ from the left-hand menu, and click on ‘Add Stream’. Follow the instructions to add your website as a data stream.

If you have other platforms like mobile apps or a YouTube channel, you can also set up data streams for them. Each data stream will have its own unique Measurement ID, which you’ll need to integrate into the respective platform.

Enable enhanced measurement

Enhanced Measurement is a powerful feature in GA4 that automatically tracks important events on your website, such as page views and video engagement. To enable Enhanced Measurement, go to your GA4 property’s Admin section, select ‘Data Streams’, and click on ‘Configure’ next to the respective data stream.

From there, you can toggle on the events you want to track automatically. This eliminates the need for manual event tracking code, saving you time and effort.

A more detailed step-by-step guide

Step 1: Create a GA4 property

  1. Log in to your Google Analytics account.
  2. Click on the “Admin” tab.
  3. Under the “Property” column, click on “Create Property.”
  4. Choose the “Web” option for a website or “App” for a mobile app.
  5. Enter the property details and click “Next.”

Step 2: Implement the tracking code

  1. In the property settings, under “Data Streams,” create a new data stream for your platform (web or app).
  2. Get the GA4 tracking code snippet.
  3. Add the tracking code to every page of your website’s HTML, just before the closing head tag — or, if you use Tag Manager, create a new tag with the GA4 code and trigger it on all pages.

Step 3: Set up event tracking

  1. Identify the events you want to track (page views, clicks, form submissions).
  2. Modify the tracking code or Tag Manager to send events to GA4 using the gtag() function.

Step 4: Configure data streams

  1. Within the property settings, set up data streams for different platforms (web, mobile app).
  2. Define parameters for each stream to capture relevant data.

Step 5: Deal with your old Universal Analytics data

  1. Universal Analytics has been retired: standard properties stopped processing new data on 1 July 2023, so there is nothing left to link.
  2. Remove any remaining Universal Analytics tags from your site, and keep any old reports you still need as exported files.

Step 6: Set up enhanced measurement

  1. Enable enhanced measurement to automatically track common events like scrolls and outbound clicks.
  2. In the property settings, go to “Data Collection” and turn on “Enhanced Measurement.”

Step 7: Define custom events and conversions

  1. Identify specific actions and conversions you want to track (for example video views or sign-ups).
  2. Modify the tracking code or Tag Manager to send custom events and conversions.

Step 8: Configure e-commerce tracking

  1. If you have an e-commerce website, set up enhanced e-commerce tracking by sending relevant data in the tracking code or Tag Manager.

Step 9: Create custom reports and dashboards

  1. Navigate to the GA4 reporting interface.
  2. Use the “Analysis” section to create custom reports, dashboards and segments tailored to your needs.

Step 10: Verify data collection

  1. Use tools like Google’s Tag Assistant or Realtime reports to verify that data is being collected correctly.
  2. Test different events and actions to ensure accurate tracking.

Step 11: Adjust data retention settings

  1. Decide how long you want to retain data in GA4.
  2. In the property settings, go to “Data Retention” and adjust the settings accordingly.

Step 12: Explore the Analysis Hub

  1. Use the Analysis Hub to explore user behaviour, paths and engagement.
  2. Experiment with different analyses to gain insights.

Step 13: Implement data filters

  1. Set up data filters to exclude internal traffic and spam from your analytics data.
  2. In the property settings, navigate to “Data Settings” and then “Data Filters.”

Step 14: Learn the GA4 reports

  1. Familiarise yourself with the reporting interface and metrics unique to GA4.
  2. Explore the various report categories available.

Step 15: Migrate custom reports

  1. Recreate any custom reports or dashboards from your previous analytics setup in GA4.
  2. Adapt the reporting structure to fit GA4’s capabilities.

Step 16: Communicate with stakeholders

  1. Keep your team informed about the migration process and any changes in reporting procedures.
  2. Share insights gained from GA4 to show its benefits.

Step 17: Monitor and optimise

  1. Regularly review your GA4 reports, identify trends and analyse user behaviour.
  2. Adjust your tracking setup and reporting based on the insights gained.

Remember, the migration process might require adjustments based on your specific setup and goals. Google’s official documentation and support resources can provide further help with each step.

Get a free growth plan

What can we help with?

Free 30-min strategy call · No obligation · Reply within 1 business day