setDryRunTarget
The setDryRunTarget() 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
getTracker().setDryRunTarget(dryRunTarget);tracker.dryRunTarget = Collections.synchronizedList(dryRunTarget)Parameters
dryRunTarget (Collection, required)
The data structure to which the data shoud be sent. Type: List<Packet>. Set it to null to disable the dry-run flag.
Examples
To set the dry-run flag:
getTracker().setDryRunTarget(Collections.synchronizedList(new ArrayList<Packet>()));tracker.dryRunTarget = Collections.synchronizedList(Collections.synchronizedList(ArrayList()))Updated about 2 months ago