TrueCount

Why does Google Tag Manager now show gtag.config events, and do I need to change anything?

Short answer

As of October 2026, Google says Google Tag Manager containers start as soon as they load, without waiting for gtag('config') commands, and those commands now appear in the dataLayer as gtag.config events. A store that loads GTM with its GTM- ID, keeps the Google tag inside GTM and has no wildcard triggers needs no changes. Act if gtm.js loads with a G-, AW- or DC- ID, if the page calls gtag('config') without the gtag.js snippet, or if a Custom Event trigger matches every event with the regex .*.

What did Google change in Google Tag Manager on October 8, 2026?

Google Tag Manager (GTM) loads your marketing tags from one container script, gtm.js. On October 8, 2026, the GTM release notes said every gtm.js container snippet will start when the container loads, whether or not the page sends gtag('config') commands. A gtag('config') command is a line of Google tag code that sets up a destination, such as a GA4 property or a Google Ads account.

Config commands now appear in the dataLayer, the list a page uses to hand data to tags, as gtag.config events, and tags on wildcard Custom Event triggers may fire on them.

Official sources disagree on timing: the release notes say "With this update", the gtag.js help article still says GTM snippets "will soon be updated", and Google's email, as quoted on a forum, named October 2, 2026. Plan as if it is live.

Which setups are affected, and which are not?

Setup How to spot it Google's position
1. Unsupported gtm.js install gtm.js loads with a G-, AW- or DC- ID (DC- means Floodlight) Unsupported; users of these containers got an email
2. Stray config command A gtag('config') line next to the GTM snippet, but no gtag/js?id= script Google's example of a wrong setup; use gtag.js or configure the tag in GTM
3. Wildcard trigger A Custom Event trigger with regex matching and the name .* Fires on all events, including automatic ones

If none of the three applies, Google's pages ask nothing of you, and you need no fix. A site that uses only Google's gtag.js snippet is supported too.

What can go wrong in GA4 and Google Ads data after the change?

Lost settings. With the GTM snippet and a gtag('config') line but no gtag.js, GTM stops recognizing the command, so each of its settings falls back to the default unless the Google tag in GTM sets it. Right column: our reading, not Google's.

Setting on the page Default Possible effect
send_page_view: false true Extra page_view events in GA4
server_container_url not set GA4 hits skip your server-side GTM container
user_id not set GA4 stops linking a logged-in shopper's sessions
allow_google_signals: false true Advertising features no longer switched off (privacy)

Duplicates. A .* trigger already matched GTM's own events, and each config command adds one more. A purchase tag on such a trigger can fire twice. Google Ads and GA4 drop a repeat with the same transaction ID; a tag without one counts the order twice.

How do I check my site in five minutes?

  1. Open a product page, view the source (Ctrl+U, or Cmd+Option+U on a Mac) and search for gtm.js. Google's standard snippet ends with the ID, as in 'dataLayer','GTM-XXXXXX'. GTM- is fine; G-, AW- or DC- is an unsupported install.
  2. Search the same source for gtag( and gtag/js?id=. A config line without the gtag/js script is a stray config command.
  3. Apps can add code after the page loads, so also run the console check below.
  4. In GTM, click Preview, connect to the store and look in the event list for gtag.config, the name Google gives these events in the dataLayer. A tag under Tags Fired there means a trigger matches it, usually a wildcard.
js
// Paste into the browser console (F12 → Console) on any store page.
// 1) Which Google scripts loaded, and with which ID?
console.log('Google scripts:', performance.getEntriesByType('resource')
  .map(r => r.name)
  .filter(u => /gtm\.js|gtag\/js/.test(u)));

// 2) Which gtag('config') commands did the page send?
console.log('config commands:', (window.dataLayer || [])
  .filter(e => e && e[0] === 'config')
  .map(e => e[1]));

How do I fix a gtm.js install that uses a G-, AW- or DC- ID?

Google gives two fixes:

  • Only Google tags (GA4, Google Ads, Floodlight): remove the gtm.js snippet and its gtag('config') lines, and paste Google's gtag.js snippet with the same ID right after the opening <head> tag on every page. Carry over any parameters from the old config line (our advice).
  • GTM also runs other tags (Meta Pixel, consent banner, Custom HTML): keep the GTM snippet, put your GTM-XXXXXX ID in place of the G-, AW- or DC- ID, and set up the Google tag inside GTM.

The second case is urgent: since July 9, 2026, a container loaded with a G- or AW- ID runs only tags and variables provided by Google, so a Meta Pixel in it may already not run.

js
// Google's gtag.js snippet from the help article; replace TAG_ID.
// Part 1, an async script tag:
//   https://www.googletagmanager.com/gtag/js?id=TAG_ID
// Part 2, an inline script right after it:
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'TAG_ID');

After the switch, Tag Assistant should list your tag ID under Google tags found, and the DevTools Network tab should show googletagmanager.com/gtag/js, not /gtm.js.

How do I move gtag('config') settings into Google Tag Manager on WordPress, Shopify and custom code?

For sites that keep GTM, Google's route is to configure the Google tag inside GTM:

  1. Copy the full gtag('config') line.
  2. In GTM, open the Google tag with the same Tag ID, or create one. Google's guide fires it on Initialization - All Initialization Events.
  3. Add each parameter under Configuration settings, or in a Google tag: Configuration settings variable to reuse it across tags.
  4. For values that change per shopper, such as user_id, push them to the dataLayer and read them with a Data Layer Variable. Google says user_id must not itself be personally identifiable information (PII).
  5. Delete the config line, test in Preview and publish.
js
// Before: the GTM snippet, no gtag.js
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('config', 'G-XXXXXXX', { 'send_page_view': false, 'user_id': 'CUSTOMER_ID' });

// After: settings live in GTM; the page only shares the value.
// Run this above the GTM container snippet.
window.dataLayer = window.dataLayer || [];
dataLayer.push({ 'user_id': 'CUSTOMER_ID' }); // your platform fills in the ID

Where do I find the gtag('config') line on each platform?

Platform Where to look Watch out
WordPress and WooCommerce Analytics or "header and footer" code plugins; the theme's header file (often header.php) in Appearance → Theme File Editor Theme updates erase edits there, and the editor keeps no backup
Shopify Online Store → … next to the theme → Edit code, then search all theme files for gtag( Duplicate the theme first; a theme update can remove code edits
Custom code The shared layout or header template Remove the line from every template

How do I stop wildcard Custom Event triggers from firing on gtag.config?

A Custom Event trigger in Google Tag Manager fires a tag when a named event reaches the dataLayer; with "use regex matching", the name can be a pattern, a regular expression (regex). Google warns that .* matches all events, including those GTM and the Google tag send automatically, and recommends a narrower pattern. Since October 8, 2026, that includes gtag.config.

  1. Name the events. Replace .* with the events the tag needs, for example ^(add_to_cart|begin_checkout|purchase)$.
  2. If the trigger must stay broad, set it to fire on Some Custom Events where Event does not equal gtag.config.
  3. Test in Preview. On a gtag.config event, Tags Fired should be empty.

What changes now that each Google tag becomes a Tag Manager container?

On November 17, 2026, Google said each Google tag becomes a Tag Manager container, so a gtag.js-only site gets Tag Manager's interface-driven tagging, debugging and version control. The upgrade "won’t change the in-page behavior of the Google tags", and each Google destination keeps its own tag, setup and triggers.

  1. New snippets drop the config command. All new deployment snippets will be the same and will not contain gtag('config'); Google recommends configuring start-up with the standard Initialization triggers, which fire before all others except Consent Initialization.
  2. The old wait is optional. The Initialization trigger "can also configure the tag to wait for the config command" to keep a legacy setup.
  3. Unsupported installs have a date. They get the upgrade in January 2027, and Google advises adjusting the setup before then.

What is the "Optimize your Tag Manager container" upgrade from October 12, 2026?

On October 12, 2026, Google let Google Tag Manager containers send data straight to Google measurement products; before, GTM loaded gtag.js as an extra script to reach a Google destination. If Google tags have conflicting settings, you choose whose settings to keep; event tags and triggers stay, and the change can be undone or rolled back. It does not touch gtag('config') lines in your page code (our reading). Before you click Add to workspace:

  1. Click Preview changes and compare send_page_view, server_container_url, user_id and allow_google_signals with the settings table above.
  2. A destination tag sends a page view automatically: if a GA4 event tag already sends page_view, check in Preview that each page sends one.
  3. Permissions are not versioned, so a rollback does not undo access granted during the upgrade.

Will pressing Back in the browser now send an extra page view to GA4?

On November 9, 2026, Google said tags that listen for "page view on history change" events will also record a page view when the browser restores a page from its back/forward cache (bfcache), the saved copy that makes Back instant; no date was given.

Two setups listen for these events: GA4 enhanced measurement, when its setting for browser-history events is on, and a Google Tag Manager History Change trigger, which single-page storefronts use for virtual page views. Purchases are separate events, but GA4 Views may rise. In GTM Preview, open another page, press Back and count the page_view events; if both setups send one, keep a single source (our advice).

What does this mean for ad budgets and bidding?

Smart Bidding, the Google Ads strategies such as Target ROAS that bid for conversions or conversion value in every auction, requires conversion tracking and bids on what your tags report: a duplicate without a transaction ID counts as a sale.

An illustration, not data: 200 orders a month worth $20,000 on $5,000 of spend. If a purchase tag fires twice per order with no transaction ID, Google Ads reports $40,000, a return of 4 looks like 8, and Target ROAS buys traffic that really returns half of what it reports.

Compare GA4 revenue with store revenue in the calculator, GA4 tab. An unsupported gtm.js install and a stray config command show in the page code, so a free outside check needs no passwords. More: GA4 e-commerce, Google Ads conversions.

FAQ

Google emailed me about an unsupported implementation. What now?

Google emailed users of containers loaded through gtm.js with a G-, AW- or DC- ID, and these installs get the Tag Manager upgrade in January 2027. For Google tags only, switch to gtag.js; if Google Tag Manager runs other tags too, load it with your GTM- ID.

Do I have to accept the "Optimize your Tag Manager container" upgrade?

Google calls it an available upgrade and gives no deadline. Accept it after Preview changes shows the same settings and each page still sends one page_view.

Does this affect server-side Google Tag Manager?

The October 8, 2026 release note covers web container snippets (gtm.js) and does not mention server containers. But an extra GA4 event fired on gtag.config can still reach a server container and travel on to Meta Conversions API. More in server-side tracking.

Changes to this article

  • : Added the November 17, 2026 Google Tag Manager release: each Google tag becomes a Tag Manager container, new snippets drop the gtag('config') command, the Initialization trigger can wait for it, and unsupported installations get the upgrade in January 2027. Replaced the note that gtag.js would get Tag Manager's capabilities soon. Rechecked the release notes and help articles.
  • : Added the November 9, 2026 Google Tag Manager release: page views on history change will also count pages restored from the back/forward cache, and how to check for extra page_view events. Added Google's note that gtag.js will get Tag Manager's capabilities. Rechecked the release notes and help articles.
  • : Added the October 12, 2026 Google Tag Manager release (destination tags and the Optimize your Tag Manager container upgrade) and what to check before accepting it. Rechecked that the gtag.js help article still says GTM snippets will soon be updated.
Sources (20)
  1. [1]

    Google Tag Manager Help, Release notes for Google Tag Manager (November 17, 2026)

  2. [2]

    Google for Developers, Google tag API reference (April 17, 2026)

  3. [3]

    Google Tag Manager Help, Set up your Google tag installation correctly for gtag.js (October 10, 2026)

  4. [4]

    Google Tag Manager Help, Custom event trigger (October 10, 2026)

  5. [5]

    Google Tag Manager Help, Reuse configuration settings in Google Tag Manager (October 10, 2026)

  6. [6]

    Google Tag Manager Help, Manage tagging behavior using the container ID (October 10, 2026)

  7. [7]

    Google Tag Manager Help, Set up Google Analytics in Tag Manager (October 10, 2026)

  8. [8]

    WordPress.org Documentation, Appearance Theme File Editor Screen (January 11, 2023)

  9. [9]

    Shopify Help Center, Editing theme code (October 10, 2026)

  10. [10]

    Google Tag Manager Help (announcement), Updates to Google tag and Google Tag Manager (August 20, 2026)

  11. [11]

    Google Tag Manager Help, Page view triggers (October 10, 2026)

  12. [12]

    Google Ads Help, About Smart Bidding (October 10, 2026)

  13. [13]

    WordPress.org Support Forums (user report, not official), New Version for Google Change? (site owner quoting Google's email) (August 20, 2026)

  14. [14]

    Google Ads Help, Use a transaction ID to minimize duplicate conversions (October 10, 2026)

  15. [15]

    Google Analytics Help, Minimize duplicate key events with transaction IDs (October 10, 2026)

  16. [16]

    Search Ads 360 Help, Technical details for Google tag and event snippet (October 10, 2026)

  17. [17]

    Google Tag Manager Help, Optimize your Google Tag Manager container (accessed November 19, 2026)

  18. [18]

    Google Tag Manager Help, Destination and destination tags: Definition (accessed October 15, 2026)

  19. [19]

    Google Analytics Help, Enhanced measurement events (accessed November 12, 2026)

  20. [20]

    Google Tag Manager Help, History change trigger (accessed November 12, 2026)

Andrii Duhin

About the author

Andrii Duhin

Independent conversion-tracking specialist

Sets up and fixes conversion tracking for online stores in the US, Europe and Israel: Meta Pixel and Conversions API, GA4, Google Ads, GTM and server-side GTM, Consent Mode. Before that, four years running paid ads on Meta, Snapchat, TikTok and Google Ads, with $500K in budgets.

Get the next change by email

A short email when a change can break your numbers: what changed, who it affects and what to check in 5 minutes.

Max 2 emails a month, sometimes with an offer from us. Unsubscribe anytime. Privacy