Wouldn't using Pi-hole or Adguard work in this case without the need to install a browser extension? These solutions are also more comprehensive because they block Google Analytics for all devices throughout a network.
Does this prevent Google Analytics from working, or does it tell Google that you don't want Google Analytics. There's a difference.<p>Most sites work with googletagmanager.com blocked. Privacy Badger will block it if you ask, although it gives you a warning that some sites may break. Generally not ones you really need.
Just a reminder that extensions can be used to fingerprint your browser, so installing this makes you more unique and easier to track. It is recommended to keep browser extensions to a minimum.<p>uBlock Origin, as well as many other ad blockers, can already do this making this extension redundant.