Moving from Universal Analytics Settings Variables to Google Analytics 4 Configuration Tags in Google Tag Manager: Overview and Benefits

Moving from UA Settings Variables to Google Analytics 4 Configuration Tags in Google Tag Manager: Overview and Benefits
Estimated Reading Time: 3 minutes

You are most likely familiar with the Universal Analytics (UA) settings variable. This lets you define your Google Analytics (GA) property and any parameters that need to be set or passed along with an event or pageview. You then apply the variable to your tags, ensuring that those settings and parameters are applied to all GA tags.

This is a little different in Google Analytics 4 (GA4) for Google Tag Manager (GTM). Now, you have a configuration tag where you can set default parameters (in the Fields to Set section). Each event tag (remembering again that everything in GA4 is an event), needs to call this a ‘configuration tag’. Furthermore, the configuration tag can send a pageview, or you can send that as a separate event.

A little confusing, huh? Well let’s see if we can break it down somewhat.

First, when setting up tagging for GA4 you will set up a configuration tag. This tag holds your measurement ID, can fire a pageview, and holds fields to set, or default parameters. A properly-formatted base-level tag will look like the one below:

Note the following:

  1. Your measurement ID – You can hardcode it here or set it to a variable if needed.
  2. The “send a page view” checkbox – If you need to pass custom parameters with your pageview, you will want to UNCHECK this box and set up a separate pageview event to pass your pageviews with.
  3. Your firing trigger – To make this available for all tags, set this to fire on all pages.

You CAN set user properties here if needed as well. These again would be user properties to persist across all tags.

You also can pass any parameters that need to be consumed by all tags using this configuration variable. For example, publish date of the content.

Next, your event tag will call this GA4 configuration tag. Let’s see how that looks for a page_view event tag:

Note the following:

  1. The configuration tag is set to the tag we just set up.
  2. The event name is filled in, in this case to page_view.
  3. We have added some event parameters that will be sent every time this tag fires.
  4. We have added a firing rule to fire this tag on all pages.

Now, when the tag fires on a page it will send a page_view event to GA with the author, publication date, and category (assuming those exist on the page).

So what in the end does the GA4 configuration tag get you? Well, it gives you one place to enter your measurement ID so there is no confusion. You can set user properties in the config tag to keep them the same across events. And yes, you can automatically pass a pageview if needed from the config tag. Finally, you still can pass along your global custom parameters just as you did with the UA config variable.

Still feeling confused about configuration tags?

Our team of experts is here to help whenever you need us.

Author

  • Ben Brooks

    Ben Brooks is a Senior Lead Digital Analytics consultant at InfoTrust. In this role, he works with clients to understand their analytics needs and concerns. He then works with developers to implement analytics to support these needs, and end users to understand and visualize the results of said analytics. In his free time, he can be found taking photographs of landscapes and transportation subjects, producing short videos, reading, and walking his miniature dachshund Bella. Ben lives in the Seattle, Washington area.

Facebook
Twitter
LinkedIn
Email
Originally Published: May 22, 2023

Subscribe To Our Newsletter

May 22, 2023

Other Articles You Will Enjoy

Predictive Analytics in Google Analytics 4: How to Use Machine Learning to Forecast User Behavior and Outcomes

Predictive Analytics in Google Analytics 4: How to Use Machine Learning to Forecast User Behavior and Outcomes

Google Analytics 4 (GA4) is embracing the power of machine learning by incorporating predictive analytics within the platform so that you can use your…

7-minute read
Google Tag Best Practices for Google Analytics 4

Google Tag Best Practices for Google Analytics 4

After collaborating with several of my colleagues at InfoTrust including Bryan Lamb, Head of Capabilities, Corey Chapman, Senior Tag Management Engineer, Chinonso Emma-Ebere, Tech…

4-minute read
Leveraging Attribution Models in Google Analytics 4 to Improve Your Marketing Strategy: Tips and Best Practices

Leveraging Attribution Models in Google Analytics 4 to Improve Your Marketing Strategy: Tips and Best Practices

In the dynamic landscape of digital marketing, understanding the customer journey is crucial for optimizing strategies and maximizing ROI. Google Analytics 4 (GA4) introduces…

5-minute read
Deploying Digital Analytics Changes at Scale for CPG and Multi-Brand Organizations

Deploying Digital Analytics Changes at Scale for CPG and Multi-Brand Organizations

The digital analytics industry is going through seismic shifts, and it is important for CPG organizations to stay abreast of the changes and stay…

5-minute read
How Does BigQuery Data Import for Google Analytics 4 Differ from Universal Analytics?

How Does BigQuery Data Import for Google Analytics 4 Differ from Universal Analytics?

All Google Analytics 4 (GA4) property owners can now enable ‌data export to BigQuery and start to utilize the raw event data collected on…

2-minute read
Advanced Analysis Techniques in Google Analytics 4: How to Use AI-Powered Insights and Predictive Analytics for Effective Marketing

Advanced Analysis Techniques in Google Analytics 4: How to Use AI-Powered Insights and Predictive Analytics for Effective Marketing

AI-powered insights and predictive analytics are revolutionary tools reshaping the modern marketing landscape. These advanced analytics techniques, particularly prominent in Google Analytics 4 (GA4),…

8-minute read
Leveraging Custom Dimensions and Metrics in Google Analytics 4 for Content Performance Measurement: Best Practices and Real-World Examples

Leveraging Custom Dimensions and Metrics in Google Analytics 4 for Content Performance Measurement: Best Practices and Real-World Examples

In today’s digital landscape where content reigns supreme, understanding how your audience interacts with your content is paramount for success. For news and media…

5-minute read
How to Integrate Google Analytics 4 with BigQuery for Enhanced Data Analysis and Reporting

How to Integrate Google Analytics 4 with BigQuery for Enhanced Data Analysis and Reporting

Has your business found that its reporting needs require advanced analysis of your analytics data beyond what is practical in the Google Analytics 4…

4-minute read
App Install Attribution in Google Analytics 4: What You Need to Know

App Install Attribution in Google Analytics 4: What You Need to Know

App install attribution in Google Analytics for Firebase (GA4) is a feature that helps you understand how users discover and install your app. It…

6-minute read

Get Your Assessment

Thank you! We will be in touch with your results soon.
{{ field.placeholder }}
{{ option.name }}

Talk To Us

Talk To Us

Receive Book Updates

Fill out this form to receive email announcements about Crawl, Walk, Run: Advancing Analytics Maturity with Google Marketing Platform. This includes pre-sale dates, official publishing dates, and more.

Search InfoTrust

Leave Us A Review

Leave a review and let us know how we’re doing. Only actual clients, please.