getDryRun

The getDryRun() method returns the current dry-run flag state.

Syntax

const currentDryRunState = await PiwikProSdk.getDryRun();

Returns

Whether the dry-run flag is enabled.

  • true if the flag is set
  • false if the flag isn’t set

Type: boolean

Examples

To read the current dry-run flag state:

const currentDryRunState = await PiwikProSdk.getDryRun();

Related methods