All Products
Search
Document Center

Application Real-Time Monitoring Service:Integrate a minigame

Last Updated:Apr 27, 2025

Real User Monitoring (RUM) of Application Real-Time Monitoring Service (ARMS) enables performance monitoring for minigames on platforms such as WeChat and TikTok. By integrating the node package manager (NPM) package, it captures performance metrics and detects runtime exceptions.

Procedure

  1. Log on to the ARMS console.

  2. In the left-side navigation pane, choose Real User Monitoring > Application List. In the navigation bar at the top, select a region.

  3. On the Applications page, click Add Application.

  4. In the Create Application panel, click Minigames.

  5. In the Minigames panel, enter a unique application name and its description, and click Create.

    After an application is created, its endpoint and process ID (pid) are automatically generated.

  6. Install the agent SDK.

    Currently, the agent for minigames can be installed only through an NPM package.

    1. Import the NPM package.

      npm install @arms/rum-minigame
    2. Initialize the SDK.

      Note

      Replace pid and endpoint in the following code with the pid and endpoint generated in step 5.

      import armsRum from '@arms/rum-minigame';
      armsRum.init({
        pid: "your app id",
        endpoint: "your endpoint",//Example: https://aokcd*****-default-cn.rum.aliyuncs.com
      });
      
  7. Configure a secure domain name.

    Add the application endpoint to the domain name whitelist in the minigame management console.

Reference

The RUM SDK for minigames of ARMS provides a wide variety of custom configurations to meet your business requirements.