Under the GDPR, an IP address is considered to PII (Personally Identifiable Information). Even Google Analytics never shows IP address in reporting but Google Analytics does use it for the Geolocation data.
To make your site full GDPR compatible. We recommend to turn on the Anonymize IP settings from Analytify.
The latest version of Analytify has a user opt-out feature through which users can exclude itself from Google Analytics tracking. To create a user opt-out button simply add this shortcode where needed:
[analytify_user_optout]Click here to Opt-Out[/analytify_user_optout]