Skip to main content
The WeChat Mini Program RUM SDK runs in the WeChat Mini Program environment and collects data through lifecycle, network, storage, error listener, and performance APIs provided by the Mini Program base library. Before integration, confirm that your Mini Program’s minimum base library version and development tool configuration meet the following requirements.

Version Requirements

If your Mini Program allows users to run on base library versions below 2.10.0, SDK initialization may fail to register unhandled Promise rejection listeners. We recommend setting a minimum base library version in the Mini Program admin console, or evaluating low-version user coverage before integration.

Feature Compatibility

trackPerformance is enabled by default, but performance APIs are handled defensively in the SDK source code. If the base library does not support wx.getPerformance or the page instance does not support setUpdatePerformanceListener, basic page, action, request, and error events can still be collected.

Supported Platforms

Development Tool and Build Requirements

When integrating through npm, build npm dependencies in WeChat DevTools:
  1. Run npm install @flashcatcloud/fc-sdk-miniprogram in the Mini Program project root
  2. Open the project in WeChat DevTools
  3. Run Tools > Build npm
  4. Confirm that the generated miniprogram_npm can be referenced by Mini Program code
When validating compatibility locally, select different debug base library versions in WeChat DevTools local settings, then verify initialization, automatic collection, and data reporting behavior.

SDK Integration

Install and initialize the WeChat Mini Program RUM SDK.

Advanced Configuration

Configure proxying, tracing, sessions, and manual instrumentation.

Data Collection

Learn which page, action, request, error, and performance data the SDK collects automatically.