tencent cloud

Tencent Cloud Super App as a Service

Event Reporting

PDF
Focus Mode
Font Size
Last updated: 2025-07-04 17:33:31
Superapp can customize the event reporting for mini programs by implementing the MiniAppProxy's reportMiniAppEvent method, thereby overriding the SDK's internal reporting logic.
Note:
This includes operation events from the mini program and data reported internally using wx.reportEvent .
The API is as follows:
/**
* Mini program event reporting proxy
* @param eventId - Event ID
* @param eventName - Event name
* @param props - Event properties
* @param app - Mini program information
* @return - Returns true if the SDK's internal reporting logic should not be executed, using the user's custom event reporting logic.
*/
public abstract boolean reportMiniAppEvent(int eId, String eventName, JSONObject props, MiniApp app);
The built-in event IDs are described below:

/** Custom event*/

public static final int EID_None = 0;

/** Open mini program */

public static final int EID_OPEN_MINIAPP = 1;

/** Update mini program*/

public static final int EID_UPDATE_MINIAPP = 2;

/** Download mini program */

public static final int EID_DOWNLOAD_MINIAPP = 3;

/** View mini program pages */

public static final int EID_MINIAPP_PAGE_VIEW = 4;

/** Exit mini program */

public static final int EID_EXIT_MINIAPP = 5;

/** Mini program behavior events */

public static final int EID_MINIAPP_ACTION = 6;





Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback