Google Tag Manager's History Change Trigger Now Fires on Back/Forward Cache Restores
Google’s Tag Manager release notes confirmed that tags that subscribe to “page view on history change” events will now start firing when a page is restored from the browser’s back/forward cache, known as bfcache. Until now, that restore didn’t reliably trigger the same tags a normal back or forward navigation would.
What is bfcache?
Bfcache is a browser optimisation. When someone navigates back or forward, the browser can restore the whole page instantly from memory instead of reloading it and re-running most scripts. Chrome’s own DevTools documentation describes it as enabling “instant back and forward navigation”.
Two things commonly block a page from being eligible: a Cache-Control: no-store header, usually set deliberately on pages with personal or private information, and problematic unload event handlers, which Chrome is in the process of deprecating outright. A page that avoids both is a candidate for bfcache.
Why this mattered for history-based tracking
Google Tag Manager’s History Change trigger fires on calls to pushState and replaceState, and on popstate, the event the browser raises when someone uses the back or forward button. It’s the standard way to fire a virtual page view tag on a single-page app, or on any site that updates the URL through client-side routing instead of a full page load.
A normal back or forward navigation raises popstate as expected, and the trigger fires. A bfcache restore is also a back or forward navigation, from the visitor’s point of view, but until this fix it didn’t reliably raise the same signal to a history-change listener. The page came back instantly. The tag watching for that moment didn’t necessarily know it had.
What this would have affected
Anything built on the History Change trigger for virtual page views: step tracking in a multi-page checkout, time-on-page by step, a funnel report built from history-based routing. A visitor going back to review an earlier step, then forward again, might have shown up as fewer steps than they actually viewed, specifically on the back/forward presses that got served from bfcache rather than reloaded.
There’s no reliable way to spot this from inside GA4 or GTM’s own reporting. It would only show up as a side-by-side comparison between what the browser actually did and what the tag recorded.
What to check
Open Chrome DevTools on a page that uses history-based routing, go to Application > Background services > Back/forward cache, and click Test back/forward cache. A page eligible for bfcache shows a confirmation that it was served from cache. A page that isn’t shows a list of blocking issues, split into ones you can fix, ones Chrome doesn’t support yet, and ones outside your control.

If a page is bfcache-eligible, check whether your History Change trigger actually fires on a back-button restore of it. Open GTM’s Preview mode, navigate forward through a step-based flow, hit the browser’s back button, and confirm the expected tag fires again rather than not firing.

Google’s own phrasing for the fix is forward-looking rather than a firm “this is now live” statement, so it’s worth treating this as a rollout rather than an instant switch, and re-testing in a week or two if the first check doesn’t show the expected behaviour yet.
Newsletter
Occasional notes on data, tracking & AI-readiness
No spam, no growth-hacking. Just an email when there's something worth reading.