Tracking settings
- Before you begin, make sure that Apptics is integrated. Refer to the integration guide.
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).
PII
The term PII is used to denote the value you set using the AppticsFlutter.instance.setUser method.
You can use setTrackingState method to change the tracking state.
Copiedimport 'package:apptics_flutter/apptics_flutter.dart';
// to change the tracking settings to track only crash and associate user id with crash.
AppticsFlutter.instance.setTrackingState(TrackingState.onlyCrashTrackingWithPII);
// to get the current tracking state
AppticsFlutter.instance.getTrackingState();