It's compliant if you show a cookie banner on your website. It not really privacy-friendly as you are still setting cookies on your users devices.
There is one point from the Google announcement that I fully agree with and that is that the future of analytics is cookieless by design (only google won't be a part of this)