The sample code provides a demo project that demonstrates how to call open APIs of Analytics Kit. Guided by the demo, you will learn how to:
- Efficiently integrate Analytics Kit.
- Correctly use APIs of Analytics Kit.
Sample Code |
Find It on Gitee |
Find It on GitHub |
WeChat mini-program sample code |
Click here |
Click here |
You can use the sample code only after completing the following operations:
- Start the IDE, go to miniprogram.hmsanalyticskitdemo, and run npm config set registry https://registry.npmjs.org to set the npm repository address.
- Run the npm install command to install the required dependencies.
- Go to Tools > Build npm to build the npm library file of the current project.
- Sign in to AppGallery Connect, and copy your mini-program configuration to replace the agconnectConfig configuration in the HiAnalyticsConfig.js file in the miniprogram.hmsanalyticskitdemo/utils directory of the demo project.