optOut
The optOut() method sets the opt-out flag for the entire app. When the opt-out flag is set, no data is collected.
By default optOut = YES
is set.
Syntax
[PiwikTracker sharedInstance].optOut = isOptOut;
Parameters
isOptOut (boolean, required)
Whether a user has the opt-out flag set. True: is opted out. False: is opted in.
Examples
To set the opt-out flag and don't collect any data:
[PiwikTracker sharedInstance].optOut = NO;
Updated 6 days ago