Or perhaps just don't use sketchy 3rd party advertising and analytics? You can always offer companies to send you PNG's of ads and serve them to the user without any of this. You can always analyze server logs to see which pages are the most popular, without deanonymizing the users. It's how some news agencies in the EU already do.
I wish I knew what's going through the minds of the people who approve all these analytics partners. I've not been able to effectively argue even against the use of "consent or pay" in EU apps and websites, despite "the European Data Protection Board released a non-binding opinion stating that in most cases, consent-or-pay models do not constitute valid consent within the meaning of the GDPR." - https://en.wikipedia.org/wiki/Consent_or_pay