# Automatically Track Events
# 1. Enable Auto-Tracking
TDAnalytics.enableAutoTrack(TDAutoTrackEventType.APP_START | TDAutoTrackEventType.APP_END | TDAutoTrackEventType.APP_CRASH | TDAutoTrackEventType.APP_INSTALL)
# 2. Set Auto-tracking Event Public Properties
You can call setAutoTrackProperties
to set or update custom properties
TDAnalytics.enableAutoTrack({
autoTrackTypes: TDAutoTrackEventType.APP_START,
properties: {
auto_name: "xxx",
auto_age: "xxx"
}
})