By default Google Analytics cookies will be blocked as requested by the most strict compliance. If you are using Google Analytics with the anonymization option activated, you can continue to use it without the need to block its cookies and still be compliant.
In this case, the easiest way to allow cookies used by Google Analytics and continue to have it working is:
- Add a list of cookies used by Google Analytics in the 'Allow local cookies' parameter, usually the full list of used cookies will be: _ga,_gid_gat,__utma,__utmb,__utmc,__utmt,__utmv,__utmz. Based on the library and options used for Google Analytics you may need additional cookies to exclude.
- Remove all domains blocking resources from Google or Google Analytics if you have activated the option to block third-party cookies
- Remove all domains blocking resources from Google or Google Analytics e.g. google-analytics.com and googletagmanager.com from each category of cookies if you are using cookie categories (or disable cookie categories)
Additionally you may need to disable the following parameter in order to allow to the Google Analytics script to set cookies normally, so turn 'Block local cookies definition' to 'No':
For a full list of cookies used by Google Analytics refer to this page: https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage