It's critical that you migrate your Universal Analytics property settings to Google Analytics 4, or you will begin to lose data on July 1, 2023 (July 1, 2024 for Analytics 360 properties). Learn how to migrate your settings.

[UA→GA4] Migration guide for beginners

Follow the steps in this guide to migrate to GA4. You'll create a new GA4 property and migrate your goals to GA4.

Follow these steps in a desktop browser, not the Analytics mobile app. It's easiest if you complete migration in one session.

If you prefer video format to learn, watch the migration basics video:

Not yet migrated to the new Google Analytics? Simple steps to get started.

Find your Analytics account and check which properties you need to migrate

If you aren't sure whether you have a Universal Analytics property that you need to migrate or which properties you need to migrate, follow these steps.

OR, If you are ready to migrate, skip to the next section, Run the GA4 Setup Assistant wizard.

Find your Google Analytics account
  1. Go to https://analytics.google.com/
  2. If you're already signed in to Google, you'll be taken directly to Analytics. Otherwise, you will be prompted to enter your Google Account and password.

If you can't sign in to your account, go to Unable to sign in to account.

Check if you have a Universal Analytics property
  1. Sign in to Google Analytics.
  2. In the upper left, to the right of the Analytics logo, click the down arrow next to the name of your property.

  3. Under Properties & Apps, find your property.
  4. Universal Analytics property IDs start with UA and end with a number (UA-XXXXXXXXX-1)

    Property selector

Check if you need to migrate your Universal Analytics property
  1. Sign in to Google Analytics.
  2. In Google Analytics, click Settings Admin (lower left).
  3. In the Account column, make sure that your desired account is selected. (If you only have one Google Analytics account, it's already selected.)

  4. In the Property column, select the Universal Analytics property you want to check.

  5. In the Property column, click GA4 Setup Assistant. It's the first option in the Property column.

  6. In the Google Analytics 4 Property Setup Assistant, find a red or green notice that says "Not Connected" or "Connected."
    • If the notice is red and says "Not Connected," you need to migrate.

    • If the notice is green and says "Connected," you have already started to migrate. Skip to next steps.

Run the GA4 Setup Assistant wizard

The first step is to create your GA4 property. 

  1. In Google Analytics, click Settings Admin (lower left).
  2. In the Account column, make sure that your desired account is selected. (If you only have one Google Analytics account, it's already selected.)
  3. In the Property column, select the Universal Analytics property that you want to migrate.

  4. In the Property column, click GA4 Setup Assistant. It's the first option in the Property column.
  5. Click Get started under I want to create a new Google Analytics 4 property.
  6. In the Create a new Google Analytics 4 property pop-up screen, you'll see one of the following:
    • Create property. If you see this option, this means that Analytics can reuse your existing Universal Analytics tag for your GA4 property. Click Create property and continue to Finish setting up your new GA4 property.

      OR, you'll see:
    • Create and continue. Click this button and continue to step 7.
  7. On the Set up a Google tag page, select the option that best describes your situation and follow the instructions to finish creating your new GA4 property:
     

    Use the Google tag found on your website (Recommended)

    Select this option to use the Google tag detected on your website to complete setup without making changes to your site's code.

    If desired, click Details to view your tag details.

    Click Confirm to finish creating your new GA4 property.

    Users on your property will be added as users on the Google tag. Learn more about managing your Google tag.

    Use a Google tag you already have

    Select this option to reuse a Google tag that you already have admin access to.

    Click Choose a tag. You'll see:

    • A list of tags you have admin access to. (If you don't see the tag you are looking for, you might not have the appropriate user permissions to make changes to that Google tag.)
    • Tag IDs
    • Whether or not the tag was detected on your website. Choose a tag labeled "On site" to complete setup without making changes to your site's code. If you choose a tag labeled "Not detected", you might need to install it. (Note that if your site has low traffic volume, your tag may be shown as "Not detected".)
    • The destinations that are associated with the tag

    Select the Google tag you want to use, then click Confirm to finish creating your new GA4 property.

    Users on your property will be added as users on the tag. Learn more about managing your Google tag

    Install a Google tag

    Select this option if you don't have the Google tag installed on your website.

    1. Click Next to install a new Google tag on your website.
    2. On the Installation instructions page, you have 2 options:
      • Install with a website builder: If you manage your site using certain website builders (or "CMS platforms," like Wix or Duda), you can finish setting up your Google tag without making changes to your code.
      • Install manually: Choose this option if one of the following is true:
        • Your website builder/CMS does not yet support the Google tag (gtag.js)
        • You or your web developer are manually tagging your website
        • Your website is tagged with analytics.js
        • You use Google Tag Manager

    Option 1: Install with a website builder or CMS

    If you manage your site using one of the platforms listed on the Installation instructions page, select your platform and follow the instructions to finish setting up your Google tag without making changes to your code.

    When you've finished installing your Google tag, click Done to finish creating your new GA4 property.

    If your platform doesn't yet support the Google tag, you can use the manual installation option (below).

    We're continually updating our CMS instructions to make it as easy as possible for you to set up your Google tag. If you don't see your platform on the Installation instructions page, you might still be able to paste your Google tag ID into your website builder or CMS. Before installing manually, check for your platform on this list 

    Learn more about installing your Google tag with a website builder.

    Option 2: Install manually

    Choose this option if one of the following is true:

    How to manually install the Google tag

    On the Install manually tab, you'll see the JavaScript snippet for your Google tag. To establish a connection between your website and Google Analytics, copy and paste your entire Google tag in the code of every page of your website, immediately after the <head> element. Don’t add more than one Google tag to each page.

    If you're using a website builder/CMS that doesn't yet support the Google tag, copy and paste your entire Google tag  using your platform's custom HTML field.

    Your Google tag is the entire section of code that appears, beginning with:

    <!-- Google tag (gtag.js) -->

    and ending with

    </script>

    When you've finished installing your Google tag on your website, click Done to finish creating your new GA4 property.

    When you've set up your tag, you need to configure your Google tag settings

    If your website is tagged with analytics.js, either manually or with a CMS

    If your website is manually tagged with analytics.js, don't remove the old analytics.js tag when you add the Google tag (above). The analytics.js tag will continue to collect data for your Universal Analytics property. The Google tag (gtag.js) that you're adding will collect data for your new GA4 property.

    If you're using a website builder/CMS that tags your pages with analytics.js, you can use the custom HTML feature to add the Google tag to your pages. Leave the analytics.js tag in place so that Analytics still sends data to your Universal Analytics property.

    The following table lists website builders and CMSs that use analytics.js and require that you add your Google tag as custom HTML in order to have both tags on your site.

    Copy and paste your Google tag to your website using your CMS's custom HTML feature.

    Use the Realtime report to verify that you're receiving data.

    Website builder / CMS Options to add custom HTML
    Blogger Instructions
    Cart.com Contact Cart.com support for instructions
    Salesforce (Demandware) Contact Salesforce support for instructions
    VTEX Contact VTEX support for instructions
    Weebly Instructions
    If you add your tag using Google Tag Manager

    For basic data collection, follow the Google Tag Manager help center instructions to add the Google Analytics: GA4 Configuration tag using your Google Tag Manager account.

    After you're finished, make sure to click Done in the GA4 Setup Assistant to finish creating your connected GA4 property.

Finish setting up your new GA4 property

After you're done with the wizard, you'll see "You have successfully connected your properties" at the top of your Google Analytics 4 Property Setup Assistant page.

Make a note of your GA4 property's name so you can find it later. If your Universal Analytics property name is "Example property", your GA4 property name will be "Example property - GA4".

Click Go to your GA4 property . This will open the GA4 Setup Assistant in your new GA4 property.

 

Turn on Google Signals

By turning on Google signals, you can collect additional data about users who have turned on ads personalization and who have signed in to their Google Accounts.
  1. In Setup Assistant, look for "Turn on Google signals" and click the Actions menu Forward arrow to the right of the row.
  2. Click Manage Google signals.
  3. On the Google signals data collection page, click Get started.
  4. On the Activate Google signals page, click Continue.
  5. Click Activate.

Migrate your goals

  1. Return to the Setup Assistant page. (Click GA4 Setup Assistant, to the left of your screen.)
  2. Look for "Set up conversions" and click the Actions menu to the right of the row.
  3. Click Import from Universal Analytics.
  4. Select which goals you'd like to recreate as conversion events in your new Google Analytics 4 property. (You'll see a checkmark next to all of your goals, by default. Unselect any goals that you don't want to recreate in your GA4 property.)
  5. Click Import selected conversions in the top right.

A confirmation message will show in the bottom left of your screen when your selected goals have been successfully recreated as conversion events in your Google Analytics 4 property.

Was this helpful?
How can we improve it?

Need more help?

Sign in for additional support options to quickly solve your issue

Search
Clear search
Close search
Google apps
Main menu
Search Help Center
true
true
true
true
true
69256