Last active
August 27, 2022 09:49
-
-
Save mbaersch/50c0d34b8a581e55d4a00792539b7c8b to your computer and use it in GitHub Desktop.
Tampermonkey Script: hide annoying announcement for GA4 in Universal Analytics UI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Kill GA4 Announcement | |
// @namespace http://tampermonkey.net/ | |
// @version 0.4 | |
// @description hide annoying announcement for GA4 in Universal Analytics UI (or any other) | |
// @author MBSL | |
// @match https://analytics.google.com/analytics/web/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var s = document.createElement('style'); | |
s.innerHTML = "ga-announcements{display:none}"; | |
document.head.appendChild(s); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Kill GA4 Announcement
Since Google decided to annoy all Universal Analytics users with a GA4 announcement that pops up after every reload or view / property change this user script hides it to save clicks.
Installation
Use a script runner plugin to execute this code in your browser:
Using GTM Helper Plugin
If you use GTM Helper (https://chrome.google.com/webstore/detail/gtm-helper/kbnbkogeeackdjiibllebnpdccbmepil?hl=de) you can configure it to add the script whenever analytics.google.com is the current host.
This will lead to the same result.