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

ReactJS