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
tracker.includeDefaultCustomVars = isFetchedgetTracker().setIncludeDefaultCustomVars(isFetched);Parameters
isFetched (boolean, required)
Whether platform, OS and app version are fetched from the tracker instance.
trueif the values are fetchedfalseif the values aren’t fetched
Examples
To turn off automatic fetching of platform, OS and app version from the tracker instance:
tracker.includeDefaultCustomVars = falsegetTracker().setIncludeDefaultCustomVars(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
- track().dimension()
- track().variable() deprecated
- track().visitVariables() deprecated
Updated 4 days ago