Use IP Anonymization in Google Analytics
https://support.google.com/analytics/answer/2763052?hl=en