For the correct usage of IP anonymization please follow the official google guidelines which you can find here: IP Anonymization

Did this answer your question?