phonegap-build / GAPlugin

Google Analytics Plugin
MIT License
170 stars 141 forks source link

Setting anonymizeIP #89

Open jeresiv opened 9 years ago

jeresiv commented 9 years ago

For privacy reasons I need set the anonymizeIP flag to true for my app. Is there way to do this with the plugin?

https://developers.google.com/android/reference/com/google/android/gms/analytics/Tracker#setAnonymizeIp(boolean)

jeresiv commented 9 years ago

For Android this can be done easily enough by allowing for a option in the initialize and then after line 19 in GAPlugin.java adding: tracker.setAnonymizeIp(true);

Not sure yet how to do this in iOS.

uareurapid commented 6 years ago

Just bumped into this, for IOS use: [tracker set:kGAIAnonymizeIp value:@"1"];