Skip to main content

Preset properties

Last updated 10/03/2026

1. Preset properties​

Preset properties collected on different platforms vary to some extent. For details, see the following documents: Android platform, iOS platform

2. Get preset properties​

When server-side tracking needs some preset properties from the app, you can use this method to get them on the app side and then pass them to the server.

-- Get the property object
TDAnalytics.getPresetProperties( function (ret)
local presetProperties = ret
print( "current presetProperties = " .. presetProperties )
end )
--[[
{
"#carrier": "中国电信", -- Carrier of the phone's SIM card; on dual-SIM phones, the carrier of the primary SIM card is used
"#os": "Android", -- OS type, such as Android/iOS
"#device_id": "abb8e87bfb5ce66c", -- Unique device identifier
"#screen_height": 2264, -- Screen height
"#bundle_id": "com.sw.thinkingdatademo", -- Package name
"#manufacturer": "realme", -- Phone manufacturer, such as HuaWei
"#device_model": "RMX1991", -- Device model
"#screen_width": 1080, -- Screen width
"#system_language": "zh", -- Phone system language
"#os_version": "10", -- OS version
"#network_type": "WIFI", -- Network type
"#zone_offset": 8, -- Time zone offset
"#app_version":"1.0" -- App version
}
]]--

IP address, country, and city information is parsed and generated on the server side. The client doesn't provide APIs to get these properties

Was this page helpful?