# Automatic Event Tracking
Corona SDK Automatic Event Tracking events including installation, open, close.
appInstall
: behavior of APP installationappStart
: Open APP, including activiting APP and resuming APP from the backgroundappEnd
: Close APP, including disabling the APP and calling in the background while tracking the duration of the enabling process
You can enable auto-tracking during initialization
-- enable auto-tracking
local params = {
appId = "YOUR_APP_ID",
serverUrl = "YOUR_SERVER_URL",
autoTrack = {
"appStart", "appEnd", "appInstall"
}
}
TDAnalytics.init( params )
Note: If you need to set distinct ID, please call
setDistinctId
before enabling auto-tracking.