An important update to Google Tag Manager (GTM) began rolling out earlier this week. The most noticeable change is that “GA4 Configuration” tags are being converted into “Google Tags,” but the exciting part is that settings variables have made a much-anticipated return!
The purpose of the GA4 Configuration tag was to set up Google Analytics on the page, but as the name implied, it only worked for Google Analytics 4 (GA4). The Google Tag is a more flexible solution that can be used to set up Google Analytics, Google Ads, and potentially other future products. This transition moves GA4 into alignment with the Google Tag approach.
Before you panic about the implications of your GA4 Configuration tag going away, rest assured that Google’s GTM team has made the transition pretty seamless, so odds are you won’t actually have to DO anything, at least not right away… The Google Tag replacing the GA4 Configuration tag will function the same as the config tag did, and your existing GA4 event tags will continue to function exactly the way they did before the transition. But there are definitely opportunities for better configuration approaches going forward, which we’ll address in detail below.
Here’s how an example GA4 Configuration tag will appear after the migration is complete:
One of the key differences in this new “Google Tag” world is that GA4 event tags no longer have a direct linkage to the Google Tag, the way they typically did to the config tag. The “Configuration Tag” drop-down menu on the GA4 event tag template has gone away. Instead, each GA4 event tag now requires the Measurement ID of the GA4 web data stream receiving the events. This frees up the Google Tag to focus solely on setting up GA4 (or other products) on the page.
Briefly, here’s a summary of what is changing:
Prior to this transition, the GA4 “Measurement ID” (of the GA4 web data stream receiving the events) could either be configured directly on the event tag, or GTM would pull it from the associated GA4 Configuration tag. Going forward, since there is no direct linkage between event tags and Google Tags, the Measurement ID needs to be configured directly on each event tag.
“So if Measurement ID now goes on the event tag, what is this Tag ID field on the new Google Tag?” Conceptually, the Tag ID is the unique identifier of the Google Tag, but because Google Tags can be combined to address the needs of multiple Google products and destinations, the “Tag ID” could, in theory, be the ID of a combined Google Tag. In practice, though, at least for Google Analytics, the Tag ID is currently the Measurement ID for the GA4 web data stream, so whatever value is in the “Measurement ID” field of the GA4 Configuration tag will be migrated to the “Tag ID” of the converted Google Tag.
If you previously relied on the GA4 Configuration tag to hold the Measurement ID of your web data stream, the transition process will also copy that value to all associated event tags.
The GA4 Configuration tag had a section called “Fields to Set,” which could be very confusing. The values configured there were a hodgepodge of “fields” that controlled behavior (e.g., allow_google_signals, cookie_flags) or supplied values for built-in dimensions (e.g., page_location, language), but you could also include event parameters. The values of these parameters remained constant until the GA4 Configuration tag fired again (typically when the next page loaded), but the benefit of adding event parameters in “Fields to Set” was that those parameters would automatically be added to each subsequent event on the page, which saved having to configure them on every tag. But since the values were static, this approach was not viable for many parameters unless you also enabled tag sequencing and fired the config tag before each event tag. (But since that approach was not without its own challenges, let’s just say that before this GTM update, the configuration of shared event parameters was “complicated.”) Immediately after the transition, everything in the config tag’s “Fields to Set” will appear in the “Configuration Settings” section of the Google Tag.
With the Google Tag transition, the “fields” previously set in Fields to Set are being rebranded as “configuration parameters” and they are now set in the “Configuration Settings” section of the Google Tag. (The supported configuration options remain the same.) In addition, there is a new “Shared Event Settings” section on the Google Tag where you can set event parameters. As with the GA4 Configuration tag, the values of any event parameters set by the Google Tag remain constant until the Google Tag fires again, but the benefit of setting parameters on the Google Tag is that they will be applied to all events on the page, including most “automatic” events, like user_engagement and events tracked by Enhanced Measurement. (Unfortunately, they are not yet applied to first_visit or session_start, but we hope to see that remedied at some point.) You can enter configuration parameters and event parameters directly on the Google Tag, or you can supply them via the new settings variables. (See below for more on these settings variables.)
One important caveat about the new Configuration Settings and Shared Event Settings sections: The distinction between these areas is only conceptual at this point… If you include a “configuration parameter” in your Shared Event Settings or an event parameter in your Configuration Settings, everything will still work. There is currently no enforcement of what should go where, but rather than perpetuate the confusing free-for-all previously known as “Fields to Set,” it’s a good idea to take advantage of the new structure and put “configuration parameters” in the Configuration Settings section, and true event parameters in the Shared Event Settings section. (We’ll address configuration best practices below.)
Regarding page_view events: The GA4 Configuration tag template had a checkbox to control whether this event was sent automatically when the tag loaded; however, the Google Tag template has no such checkbox. Instead, page view behavior for the Google Tag is governed by the send_page_view configuration parameter. The default behavior is to send an automatic page_view event when the Google Tag loads, but if the checkbox is left unchecked on the config tag, the migration process will automatically add a send_page_view configuration parameter to the Google Tag with the value “false”. Going forward, though, if you want to suppress the automatic page_view event when a Google Tag loads and instead send your own custom event, be sure to include the send_page_view parameter in your Configuration Settings and enter the value “false”, otherwise you may end up with duplicate page_view events.
Finally, for those using Server-Side GTM, the GA4 Configuration tag template had a “Send to server container” checkbox that exposed a field for the Server Container URL when checked, but that checkbox has also gone away. On the Google Tag, you now specify the URL using the server_container_url configuration parameter. (This will automatically be converted if your config tag specified a sGTM URL.)
User properties are an extremely valuable Google Analytics 4 feature, and while you could set them on the GA4 Configuration tag, the new Google Tag template does not include a place for them because it’s designed to be product agnostic. Later in this post we’ll address where to set them going forward, but to keep things simple for existing tags, GTM will continue to include any user properties in the post-transition Google Tag. You can keep them there if you like, but any new Google Tags you create must adopt the new approach below. Note: Be careful that you don’t set user properties on both the Google Tag and GA4 event tags; if you do, the ones on the Google Tag will be ignored in favor of the ones on the event tag.
Any triggers or advanced settings previously configured on the GA4 Configuration tag are being migrated to the new Google Tag as a part of the transition, so the Google Tag will fire exactly how it did before. If you previously used tag sequencing to make your GA4 Configuration tag a “setup tag” for your event tags, that sequencing will still be in place, but as we’ll discuss below, tag sequencing is no longer needed.
While the migration from the GA4 Configuration tag to the Google Tag is all fine and good, it’s not really going to rock anyone’s world, but the (re)introduction of “settings variables” is a game changer!
As part of the Google Tag update, Google Tag Manager is adding two new types of variables: “Google Tag: Configuration Settings” and “Google Tag: Event Settings”. For those who remember the “Google Analytics Settings” variable from Universal Analytics, this is a prayer being answered! These new settings variables allow you to define a list of “configuration parameters” or event parameters (and user properties) in a variable and apply the whole list to a tag simply by adding that variable to the tag. For example, you can now create a Configuration Settings variable that contains all the “configuration parameters” you want to apply to your Google Tag and add them by choosing that variable from the new drop-down menu on the Google Tag—ditto for event parameters in the Shared Event Settings section. But what is even more exciting is that you can now create an Event Settings variable and apply it to your GA4 event tags to automatically include a standard group of event parameters (and user properties) on every event. And unlike the values set by the Google Tag, the values provided by the Event Settings variable are dynamically recalculated when the event is sent, so you’re not limited to static values. (Timestamp, anyone?)
To make the immediate transition as simple as possible in existing containers, GTM is migrating the GA4 Configuration tag to a new Google Tag such that everything will work the same, but in doing so it is not using the new settings variables. To take advantage of the flexibility now provided by these settings variables, our recommendations going forward are:
When your config tag is converted into a Google Tag, everything in “Fields to Set” is moved to the Configuration Settings section of the Google Tag. This ensures that the tag will function the same as it did before, but it just perpetuates the old “Fields to Set” confusion forward. We recommend that you use this opportunity to do a little housekeeping so that things are better organized for the future:
A Sample Google Tag, Including Settings Variables
If you only have a single Google Tag (which is the case for many implementations), using settings variables may be overkill, but it will help maintain a clearer line between “configuration parameters” and event parameters and set you up for easy reuse if you create additional Google Tags. However, if you’d prefer to skip using the new variables, you can configure the parameters manually in their respective sections on the Google Tag. In any case, it’s a good idea to separate the two types of “parameters” into the appropriate sections of the tag.
Review your GA4 event tags and Google Tag(s) for event parameters that need to be applied to every event and move any parameters with values that may change to an Event Settings variable, then apply that variable to your event tags. Since the parameter values in this variable will be dynamically recalculated each time an event tag fires, name this variable accordingly (e.g., “Event Settings - Dynamic”).
After you make this change, the only event parameters you will typically need to enter directly on an event tag are those that are specific to that event. (Any shared event parameters with static values should be moved to the Event Settings variable applied to the Google Tag as addressed above.)
Review your GA4 event tags and the Google Tag(s) that replaced your GA4 Configuration tag(s) for user properties and move all user properties to the “Google Analytics User Properties” section of the Event Settings variable that you applied to your event tags. By having all user properties in this one variable and applying it to all event tags, you can be sure that whenever a user property value changes, the new value will be included with the next event that gets sent.
If you have been using tag sequencing to fire your GA4 Configuration tag before each event tag (i.e., to force parameter values to update before the event), that workaround is no longer needed now that you can apply an Event Settings variable to your event tags.
After you’ve implemented the new Event Settings variable as described above and applied it to your event tags, you can go to Advanced Settings > Tag Sequencing and remove the Google Tag as the Setup Tag for each event tag.
When you remove tag sequencing, be sure to add a trigger to your Google Tag. Typically, the Google Tag should fire on page initialization or as soon as the data layer is ready. (If the same trigger fires both the Google Tag and an event tag, the Google Tag will automatically execute first to ensure that GA4 is set up properly before events are processed.)
Here are a few things to keep in mind when it comes to the new settings variables:
The introduction of settings variables to Google Tag Manager in support of GA4 is a huge step forward. Back when GA4 was first introduced, hardcore GTM/GA users lamented the lack of a settings variable, and its absence forced some complicated (and sometimes problematic) workarounds—cough, cough, sequencing, cough, cough. But as with most things GA4, patience pays dividends, and now that settings variables are back in the toolbox, configuring GTM for Google Analytics purposes will be a lot simpler.
If Adswerve can assist during or after this transition, please reach out and learn more about how we can help.