setIncludeDefaultCustomVars

The setIncludeDefaultCustomVars() method turns on or off fetching platform, OS and app version from the tracker instance. It is turned on by default.

Syntax

getTracker().setIncludeDefaultCustomVars(isFetched);
tracker.includeDefaultCustomVars = isFetched

Parameters

isFetched (boolean, required)

Whether platform, OS and app version are fetched from the tracker instance. True: is fetched. False: is not fetched.

Examples

To turn off automatic fetching of platform, OS and app version from the tracker instance:

getTracker().setIncludeDefaultCustomVars(false);
tracker.includeDefaultCustomVars = false

Notes

  • If setIncludeDefaultCustomVars(true) is set, indexes 1-3 are used to track the platform, OS and app version as custom variables.

Related methods