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.
You can use the sample code only after completing the following operations:
- Start the IDE, go to 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.
- Sign in to AppGallery Connect, and copy your web-specific configuration to replace the agConnectConfig configuration in the main.js file in the hmsanalyticskitdemo/src directory of the demo project.