For the correct use of IP anonymization please follow the official Google guidelines which you can find here: https://developers.google.com/analytics/devguides/collection/analyticsjs/ip-anonymization
How can I make IP's anonymous for Google Analytics?

Written by Marlon Dean Neuhuber
Updated over a week ago
Updated over a week ago