1. Built-in Events

Event English Variable NameEvent Display NameProperty English Variable NameEvent Property Display NameProperty Value TypeProperty Value Example or DescriptionTrigger TimingRemarks
$MPLaunchMini Program Launch
$Preset Properties

The Mini Program is restarted when it is killed, and it is triggered when it is reopened.It is triggered only once when the Mini Program is initializedGeneral collection of Mini Program SDK, automatically collected after opening the autoTrack interface

Refer to the Mini Program SDK:https://manual.sensorsdata.cn/sa/latest/tech_sdk_client_mp_zfb-1573896.html
$sceneLaunch SceneStringDescriptionThe scene of Mini Program startup, the scene value can be referred to the official introduction of Alipay Mini Program
$url_pathPage PathString
$is_first_timeWhether First TimeBoolean
$utm_sourceAdvertisement Campaign SourceString
$utm_mediumAdvertisement Campaign MediumString
$utm_termAdvertisement Campaign TermString
$utm_contentAd Campaign ContentString
$utm_campaignAd Campaign NameString
$MPShowMini Program Display
$Preset Properties

Displayed when the mini program is launched or enters the foreground from the background.

$sceneLaunch SceneStringDescriptionThe scene in which the mini-program is launched. The scene value can be found in thereference official introduction of Alipay mini-program
$url_pathPage PathString
$utm_sourceAdvertising Campaign SourceString
$utm_mediumAdvertising Campaign MediumString
$utm_termAdvertising Campaign TermString
$utm_contentAdvertising Campaign ContentString
$utm_campaignAd Campaign NameString
$MPHideMini Program Enter Background


$Preset Properties

Mini Program Enter Background from Foreground


$event_durationDurationNumber
$url_pathPage PathString
$MPClick

Mini Program Element Click


$Preset Properties

Triggered when a Mini Program page element is clicked, Only collected when the clicked element has the onTap or onLongTap listener attached

Version 1.0.6 and above

$element_idElement IDStringThe element needs to set the id attribute
$element_nameElement NameStringThe element needs to set the data-name attribute
$element_contentElement ContentStringThe element needs to set the data-content attribute
$element_typeElement typeString
$url_pathPage pathString
$MPViewScreenMini Program page view
$Preset Properties



$url_pathPage pathString


$url_queryPage ParameterString


$utm_sourceAdvertising Campaign SourceString


$utm_mediumAdvertising Campaign MediumString


$utm_termAd Campaign KeywordsString


$utm_contentAd Campaign ContentString


$utm_campaignAd Campaign NameString


$MPPageLeave


Mini Program Page Leave


event_durationPage View DurationNumber
  • Version 1.1.7 and above, unit: seconds
  • Collected interval duration from the lifecycle of the page onShow to onHide or onUnload
Collected when the page onHide or onUnload lifecycle of Mini Program is triggered


Note: After being stored in the database, the English name of this attribute is $event_duration
$url_pathPage PathString
  • Version 1.1.7 and above
$url_queryPage ParametersString
  • Version 1.1.7 and above. For example, pages/index/index?props=a, $url_query is props=a

2. Predefined attribute for all events

Field NameTypeExplanationNotes
$libStringSDK TypeThe value of Alipay Mini Program SDK is AlipayMini
$lib_versionStringSDK Version
$app_idStringMini Program APPIDSupported in version 1.0.13 and above
$screen_heightNumberScreen Height
$screen_widthNumberScreen Width
$modelStringDevice Model
$manufacturerStringDevice Manufacturer
$osStringOperating System
$os_versionStringOperating System Version
$is_first_dayBooleanWhether the first-day visit (true for values from the new user's first visit to midnight on that day, false afterwards, indicating that it is stored in the storage)
$is_login_idBoolean valueWhether it is a login ID (determined and added when data is stored)
$longitudeNumberGPS information, longitude * 106, latitude * 106lSupports version 1.0.17 and above
$latitudeNumber
$ipStringProperties carried by the SDK when sending data requests
$timezone_offsetNumberTimezone offsetSupports version 1.0.13 and above
$countrystringIP resolved
$provincestringIP resolved
$citystringIP resolved
$network_typestringnetwork type
$browserstringbrowser name, resolved by UA
$browser_versionStringBrowser version, obtained from UA parsing
$latest_utm_sourceStringLatest source of paid advertising campaign
$latest_utm_mediumStringLatest medium of paid advertising campaign
$latest_utm_termStringLatest term of paid advertising campaign
$latest_utm_contentStringLatest content of paid advertising campaign
$latest_utm_campaignStringThe latest paid advertising campaign name
$latest_sceneStringThe latest start scene