diff --git a/assets/resources/resources.txt b/assets/resources/resources.txt index e3ad0b5f4..1049cf04a 100644 --- a/assets/resources/resources.txt +++ b/assets/resources/resources.txt @@ -379,8 +379,17 @@ google-analytics.com/analytics.js application/javascript w[gaName] = ga; // https://github.com/gorhill/uBlock/issues/3075 const dl = w.dataLayer; - if ( dl instanceof Object && dl.hide instanceof Object && typeof dl.hide.end === 'function' ) { - dl.hide.end(); + if ( dl instanceof Object ) { + if ( dl.hide instanceof Object && typeof dl.hide.end === 'function' ) { + dl.hide.end(); + } + if ( typeof dl.push === 'function' ) { + dl.push = function(o) { + if ( o instanceof Object && typeof o.eventCallback === 'function' ) { + setTimeout(o.eventCallback, 1); + } + }; + } } // empty ga queue if ( gaQueue instanceof Function && Array.isArray(gaQueue.q) ) { diff --git a/src/js/assets.js b/src/js/assets.js index e1fa8367a..4378f513b 100644 --- a/src/js/assets.js +++ b/src/js/assets.js @@ -307,7 +307,8 @@ api.fetchFilterList.legacy = { '=google-analytics_ga.js': '=google-analytics.com/ga.js', '=google-analytics_inpage_linkid.js': '=google-analytics.com/inpage_linkid.js', '=googlesyndication_adsbygoogle.js': '=googlesyndication.com/adsbygoogle.js', - '=googletagmanager_gtm.js': '=googletagmanager.com/gtm.js', + '=googletagmanager_gtm.js': '=google-analytics.com/analytics.js', + '=googletagmanager.com/gtm.js': '=google-analytics.com/analytics.js', '=googletagservices_gpt.js': '=googletagservices.com/gpt.js', '=ligatus_angular-tag.js': '=ligatus.com/*/angular-tag.js', '=monkeybroker.js': '=d3pkae9owd2lcf.cloudfront.net/mb105.js', diff --git a/src/js/start.js b/src/js/start.js index 5f644d5ea..bac8aecf2 100644 --- a/src/js/start.js +++ b/src/js/start.js @@ -139,7 +139,7 @@ var onVersionReady = function(lastVersion) { µb.assets.purge('ublock-resources'); // Force updating all filters due to filter syntax converter update. - if ( vAPI.app.compareVersions(lastVersion, "1.16.4.27") <= 0 ) { + if ( vAPI.app.compareVersions(lastVersion, "1.16.4.28") <= 0 ) { µb.assets.purge(/./, 'public_suffix_list.dat'); }