Mini Program Preset Events Guide

更新时间:
复制 MD 格式

Quick Tracking automatically collects preset events and properties for mini programs after SDK integration.

Preset events

Event Name

Event Code

Property

Property Description

Implementation

Collection Time

Mini Program start event

$$_app_start

Start time

The client timestamp when the start event occurs.

Integrate the SDK.

When the miniapp appears on the frontend

Start type

Cold start or Hot start

Start page

The page displayed at startup.

url

The path of the page where the event was triggered.

Mini Program exit event

$$_app_end

Exit time

The client timestamp when the exit event occurs.

Integrate the SDK.

The miniapp moves to the background.

Duration

The elapsed time from the most recent start to the exit.

Exit page

The page displayed at exit.

url

The path of the page where the event was triggered.

Exit type

The method used to exit the page (destroy or exit).

Mini Program share event

$$_share

Share time

The client timestamp when the share event occurs.

Integrate the SDK.

Click the miniapp's built-in share button.

Share page

The page displayed when sharing occurs.

url

The path of the page where the event was triggered.

Share source page

The page visited before the share event.

Page view event (automatic collection with full instrumentation)

$$_page_end

Page exit time

The client timestamp when the page is exited.

Integrate the SDK.

Reported when the user leaves the page.

Page entry time

The client timestamp when the page is entered.

Page dwell time

The elapsed time between page entry and exit.

url

The path of the page where the event was triggered.

Source page URL

The URL of the previous page.

Instrumentation method

1: Automatic collection with full instrumentation enabled.

Page view event (manual collection with code instrumentation)

$$_page_start

Page code

The page code specified in the instrumentation plan.

Integrate the SDK and call the code instrumentation API.

Reported when the developer calls the API.

Source page code

The code of the previous page.

Instrumentation method

0: Manual instrumentation by calling the API.

Control click event

The event code of the target element. Supports any element.

Event code

The event code of the target element.

Method 1: Automatic collection (full instrumentation). Call the automatic click event API.

Method 2: Manual collection (code instrumentation).

This event is a control click event reported through code instrumentation. You must also configure it as a click event in Event Management.

Reported when the control is clicked.

Page code

The code of the page where the event was triggered.

Source page code

The code of the page visited before the event.

Event trigger time

The client timestamp when the event was triggered.

Instrumentation method

0: Manual instrumentation by calling the API.

1: Automatic collection with full instrumentation enabled.

Control exposure event

The event code of the target element. Supports any element.

Event code

The event code of the target element.

Method 1: Automatic collection (full instrumentation). Call the automatic exposure event API.

Method 2: Manual collection (code instrumentation).

This event is a control exposure event reported through code instrumentation. You must also configure it as a control exposure event in Event Management.

Reported when the control is exposed. Automatic exposure requires the display area to exceed 50% and the dwell time to exceed 300 ms.

Page code

The code of the page where the event was triggered.

Source page code

The code of the page visited before the event.

Event trigger time

The client timestamp when the event was triggered.

Instrumentation method

0: Manual instrumentation by calling the API.

1: Automatic collection with full instrumentation enabled.

Page reach bottom event

$$_reach_bottom

url

The path of the page that was scrolled to the bottom.

Integrate the SDK.

Reported when the page is scrolled to the bottom, which triggers the onReachBottom function.

Times reached bottom

The number of times the page was scrolled to the bottom.

Time reached bottom

The client timestamp when the event occurred.

Preset properties

Preset properties are attached to every event, regardless of collection method.

Property field

Property key

Collection time

Device brand

device_brand

First start

Device model

device_model

SDK initialization

Operating system

os

SDK initialization

Operating system version

os_version

SDK initialization

Network type

access

SDK initialization

Resolution

screen

SDK initialization

Country

country_name

When the event is reported to the server-side.

Province

province_name

When the event is reported to the server-side.

City

city_name

When the event is reported to the server-side.

Application version

app_version

SDK initialization

Mini Program scenario value

scene

SDK initialization

SDK version

sdk_version

SDK initialization

Platform

app_id

SDK initialization

Platform type

platform

SDK initialization

Channel source

utm_source

SDK initialization

Channel medium

utm_medium

SDK initialization

Promotion activities

utm_campaign

SDK initialization

Promotion creative

utm_content

SDK initialization

Keyword

utm_term

SDK initialization

Device ID

utdid

SDK initialization

Account ID

ll_userid

When the user account setting interface is called.

Event code

event_code

When the event is triggered.

Event trigger client time

local_timestamp

When the event is triggered.

Event trigger server-side time

server_timestamp

When the event is reported to the server-side.

Page code where the event was triggered

page

When the event is triggered.

Page title where the event was triggered

$sys_page_title

When the event is triggered.

Page path where the event was triggered

$sys_url

When the event is triggered.

Source page code where the event was triggered

refer_page

When the event is triggered.

Source page path where the event was triggered

$sys_ref_url

When the event is triggered.

Event instrumentation method

$sys_track_type

When the event is triggered.