Skip to content

Instantly share code, notes, and snippets.

@mbaersch
Last active August 27, 2022 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbaersch/50c0d34b8a581e55d4a00792539b7c8b to your computer and use it in GitHub Desktop.
Save mbaersch/50c0d34b8a581e55d4a00792539b7c8b to your computer and use it in GitHub Desktop.
Tampermonkey Script: hide annoying announcement for GA4 in Universal Analytics UI
// ==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);
})();
@mbaersch
Copy link
Author

mbaersch commented Aug 26, 2022

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.

image

This will lead to the same result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment