Help Center/ Application Performance Management/ FAQs(2.0)/ Web Monitoring FAQs/ How Can I Connect WeChat?
Updated on 2026-07-29 GMT+08:00
How Can I Connect WeChat?
Different from other applets, WeChat supports the following two access methods.
Method 1: Integrating the SDK using npm
- Ensure that the project has the package.json file. If it does not exist, run the following command in the root directory of the project to create one:
npm init
- Run the SDK installation command to install the SDK software package:
npm i apm-mini-sdk
- Use the developer tool to build the npm library file of the current project.
- Use import agent from 'apm-mini-sdk' in the app.js file.
Method 2: Importing a file
- Run the SDK installation command to install the SDK software package:
npm i apm-mini-sdk
- Find the app.js file (node_modules > apm-mini-sdk > app.js) in the SDK folder, copy it from node_module to the root directory, and rename it.
Parent topic: Web Monitoring FAQs
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot