isAnonymizationEnabled
The isAnonymizationEnabled() method marks a user as anonymous or non-anonymous. If set to anonymous, the user's IP address, location information (only the country is known), user ID and device ID are not collected. Every time the application is started, a new visitor ID is generated for anonymous users.
The isAnonymizationEnabled = YES
is set by default. This means each user is anonymous by default.
Syntax
[PiwikTracker sharedInstance].isAnonymizationEnabled = isAnonymous;
Parameters
isAnonymous (required)
Whether a user is anonymous or non-anonymous. YES: anonymous. NO: non-anonymous.
Examples
To mark a visitor as non-anonymous:
[PiwikTracker sharedInstance].isAnonymizationEnabled = NO;
Updated 6 days ago