Skip to content
English
  • There are no suggestions because the search field is empty.

Transitioning from Universal Analytics Tracking Code to GA-4

Universal Analytics (UA) was sunset on July 1, 2023. Google has discontinued support for the Universal Analytics tracking code. If you have not yet migrated, follow the steps below to set up GA4 using Google Tag Manager.

Note: If you are not using Google Tag Manager, see How to set up the new Statistics Module using GA4 for the direct Measurement ID setup method.

In this article

What does this mean for your site's analytics?

If your site was previously connected to the Statistics module via a Universal Analytics tracking code, that connection is no longer active. UA stopped processing data on July 1, 2023, and the Statistics module has since been updated to support GA4 directly.

To resume tracking analytics on your site, you will need to create a GA4 property and connect it to Accrisoft via your Measurement ID.

Next Steps

To continue tracking analytics with GA4, complete the following:

  1. Create a Google Analytics 4 account and property
  2. Set up and install Google Tag Manager
  3. Follow the steps below to create and verify your GA4 tag

Set up the Google tag in Tag Manager

Important: The tag previously called "Google Analytics: GA4 Configuration" has been renamed to Google tag in Tag Manager. If you set up your tag previously, it has been automatically upgraded — no action is needed. For new setups, use the Google tag type as described below.

Step 1: Create a Google tag

Start by creating a Google tag to send data to your GA4 property.

  1. In Google Tag Manager, click Tags > New
  2. Enter a name for the tag at the top (e.g., "GA4 - example.com")
  3. In the Tag Configuration box, select Google tag
  4. In the Tag ID field, enter your "G-" Measurement ID from your GA4 Data Stream settings
  5. Keep the Send a page view event when this configuration loads option checked to automatically send pageview events

Step 2: Create a trigger

Set up a trigger to fire the Google tag when someone loads your website.

  1. Click Triggering and select Initialization - All Initialization Events
    • Using the Initialization trigger ensures the Google tag fires before other tags on the page. Learn more about Page triggers.
  2. Click Save to save the tag configuration

Step 3: Verify your tag works

Before publishing, confirm the tag fires correctly:

  1. In Google Tag Manager, click Preview — the Tag Assistant will open
  2. Enter your site's URL and load the page
  3. Check if the Google tag fired when the page loaded:
    • ✓ If your tag fired successfully, it will appear in the Tags Fired list in Tag Assistant
    • ✗ If your tag did not fire, review your trigger settings and confirm the correct Tag ID was entered
  4. When finished debugging, close Preview mode
  5. In your Workspace, click Submit to publish your changes — tags will not track until published

Step 4: Add your Measurement ID to the Statistics module

Once your tag is published and confirmed working, connect it to your Accrisoft site:

  1. Go to Marketing > Statistics module in your Accrisoft backend
  2. In the Setup tab, paste your Measurement ID (format: G-XXXXXXXXXX)
  3. Click Save

Your Measurement ID can be found in your GA4 account under Admin > Data Streams > [your stream] > Measurement ID.

Related articles