dryRun
The dryRun() method sets a dry-run flag and lets you test and debug tracking. The dry-run flag prevents data from being sent to Piwik PRO and instead prints it to the console.
Syntax
PiwikTracker.sharedInstance()?.dryRun = isDryRun[PiwikTracker sharedInstance].dryRun = isDryRun;Parameters
- dryRun
boolean, required
Enables or disables dry run mode. Set totrueto enable dry run mode andfalseto disable it.
Examples
To set the dry-run flag:
PiwikTracker.sharedInstance()?.dryRun = true[PiwikTracker sharedInstance].dryRun = YES;Updated 2 months ago
Did this page help you?