Question: Since the iOS SDK 3.0 of Google Analytics has been released, plenty of changes have been made with the API. There is one big problem we encounter that has to do with the anonymize IP feature.

In Germany one has to anonymize the IPs by law when using some tracking framework. With the previous version of the SDK (2.0) it worked like this:

```
tracker.anonymize = YES;

```

where `tracker` is an instance of `id<GAITracker>`.
Now with the version 3.0 one has to use the set method of the tracker:

```
[tracker set:kGAIAnonymizeIp value:@"?????"];

```

The signature of the method is 

```
- (void)set:(NSString *)parameterName
      value:(NSString *)value;

```

and that's the problem. What should the parameter value be? `@"YES"` or `@"NO"`? `@"ON"` or `@"OFF"`? `@"1"` or `@"0"`? Are these parameters case-sensitive?

There is no information about the `value` in the documentary. Does anyone know what parameter is correct to anonymize the IPs?

Answer: 
Work for me:

```
[tracker set:kGAIAnonymizeIp value:[@NO stringValue]];

```

or

```
[tracker set:kGAIAnonymizeIp value:[@YES stringValue]];

```
I am trying the following method: 

```
[self.tracker set:@"kGAIAnonymizeIp" value:@"YES"];

```

If I did

```
 [self.tracker set:kGAIAnonymizeIp value:@"YES"]; 

```

like in the other answer on here, it gave me an error saying the kGAIAnonymizeIp is an undeclared identifier.

Not sure if what I did works or is even doing anything but at least I tried. The documentation for analytics is really poor.