This won't be allowed in the EU under GDPR[^1].
[^1]: https://matomo.org/blog/2022/01/google-analytics-gdpr-violat...