Mini program management

更新时间:
复制 MD 格式

The Mini program management page displays overall data analytics for all mini programs created in the current application using the mini program analytics module. The page shows summary data for four metrics: new users, active users, total users, and launches. It also provides a data overview for each mini program. The data on this page is from the previous day.

You can create and manage mini programs to perform statistical analysis.

The core metrics are described as follows:

Metric

Description

New users

The total number of new users for all mini programs in the current app. Users are deduplicated across different mini programs. For a single mini program, this is the number of users who access the mini program page for the first time. A user who accesses the page multiple times is counted only once.

Active users

The total number of active users for all mini programs in the current app. Users are deduplicated across different mini programs. For a single mini program, this is the total number of unique users who access it. A user who accesses the mini program multiple times is counted only once.

Launches

The total number of launches for all mini programs in the current app. Users are not deduplicated across different mini programs. For a single mini program, this is the total number of times it is opened. A launch is counted as one session from when a user opens the mini program until it is sent to the background. If the interval between two consecutive launches is less than 30 seconds, they are counted as a single launch.

Total users

The total number of historical new users for all mini programs under the account. Users are deduplicated across different mini programs. For a single mini program, this is the total number of users from its launch to the present.

Create a mini program

Create a mini program for statistical analysis. You can create multiple applications, and multiple mini programs can be created within a single application. However, you can create a maximum of 100 mini programs.

Important

The mini programs created in mini program analytics are for statistical and analysis purposes only. The actual mini program must be created on the corresponding developer and publishing platforms.

The steps to create a mini program are as follows:

  1. Log on to the mPaaS console. Select the target application. In the navigation pane on the left, choose Mini Program > DataAnalysis > Mini Program Management.

  2. Click Create mini program. In the panel that appears, enter a name and select a type for the mini program. The supported types are mPaaS mini program, Alipay mini program, and WeChat mini program.

  3. After you configure the mini program, click OK to create it. The new mini program appears in the mini program list.

  4. In the Code integration panel that appears, copy the integration code into the app.js file of the mini program. If you do not integrate the code, basic metrics cannot be collected for the mini program.

    The parameters in the integration code are described in the following table:

    Parameter

    Description

    appId

    mPaaS App ID

    workspaceId

    Workspace

    id

    Mini program ID

    reportURL

    The address for reporting mini program instrumentation data. This corresponds to the log collection gateway (mdap) address. On the public cloud, the domain name for mdap is fixed at 118.31.168.191.

    debug

    Debug mode. It is disabled by default. `true` enables the mode. `false` disables the mode.

View mini program data details

The mini program list shows all mini programs created using the mini program analytics module and their core metric data. You can sort by different metrics to view the data overview for each mini program.

In the mini program list, select a mini program. Click the mini program name or View in the Actions column to go to the Data Overview page and view detailed statistics for the mini program.

Edit a mini program

You can modify the basic information of a mini program, including its name and type.

In the mini program list, select a mini program. Click Edit in the Actions column. Modify the information and confirm the changes.

Delete a mini program

You can delete a mini program from the list.

In the mini program list, select a mini program. Click Delete in the Actions column and confirm the deletion.

Mini program code integration

You can integrate the code with your mini program to collect metric data.

In the mini program list, select a mini program. Click Code integration in the Actions column. In the Code integration panel that appears, copy the integration code into your mini program.