Hoe IP-adressen Google Analytics anonimiseren in 2021 op Discourse?

The option to add custom HTML is still there, you’d need to go to admin → customize → themes and from there create a new theme component, which will then have the option for custom CSS/HTML: