How can I successfully implement Google Analytics IP anonymization?

Good Day I need help with the IP anonymization.

As suggested I need to to the following: ga(‘set’, ‘anonymizeIp’, true);

But this is not working at all.

I was suggested by Google to put this code in between of:

ga(‘create’, ‘UA ------’, ‘auto’);

→ ga(‘set’, ‘anonymizeIp’, true);

ga(‘send’, ‘page view’);

→ Apparently : https://pay.google.com makes this issues

I am not able to find where this code is embedded into shopify, may someone assist?

Secondly, when I delete the GA Code from preferences, do code still remain in liquid or will it be deleted?

Thank you

No-One?

Add the following to your Additional Google Analytics Javascript section and all collect requests will use the aip=1 parameter, a.k.a. anonymized IP addresses.

ga('set', 'anonymizeIp', true);