Tracking settings
Understand the different tracking states offered by Apptics.
- UsageAndCrashTrackingWithPII
- UsageAndCrashTrackingWithoutPII
- OnlyUsageTrackingWithPII
- OnlyUsageTrackingWithoutPII
- OnlyCrashTrackingWithPII
- OnlyCrashTrackingWithoutPII
- NoTracking
NOTE: UsageAndCrashTrackingWithoutPII is the default state.
Usage tracking
Usage tracking refers to the tracking of Events, APIs, Screens, and Sessions.
Crash tracking
Crash tracking refers to the tracking of unhandled exceptions (Crashes).
Personal Identifiable Information (PII)
- The term PII is used to denote the value you set using the Apptics.setUser method.
- You can use setTrackingState method to change the tracking state.
Copiedimport { Apptics, TrackingState } from '@zoho_apptics/apptics-react-native';
// to change the tracking settings to track only crash and associate user id with crash.
Apptics.setTrackingState(TrackingState.OnlyCrashTrackingWithPII);
// to get the current tracking state
Apptics.getTrackingState();