If you use Google Analytics, you can get in a lot of trouble if you don't prompt the user with the cookie policy pop up. GDPR is a MF. I feel like it's bad UX to have that pop up, and I don't want to get in trouble, so I opt to use more bare-bones analytics and do a lot of custom logging myself.
The tool I use specifically is https://pirsch.io/, which is very privacy friendly and doesn't have any of the stalky type stuff that Google Analytics has as default. Using this, you don't need to have the GDPR compliance pop-up.