English | 中文
HmsAnalyticsKitDemo is a web client that applying HUAWEI Hianalytics SDK used for showing how to collect user engagement and user preference. Read more about Hianalytics.
For more development guidance, please refer to the links below:
We also provide an example to demonstrate the use of analytics SDK for Web.
This sample uses the npm package manager.
First download the demo by cloning this repository or downloading an archived snapshot.
In VS Code, use the "File -> Open Folder", and select the directory of "analytics-demo".
We provide two demos:
You can switch to the hmsanalyticskitdemo directory, use the command npm install
to install the dependencies, then run command npm run dev
to run the project directly.
You should create an app in AppGallery Connect, and obtain the project configuration then copy to your web project.Development Process.
npm install
to install the dependencies.npm run dev
to start the demo project.Create a web app in AppGallery Connect and obtain the project configuration, then copy it to your web project.
Hardware requirements:
Software requirements:
After running the app you should see a screen like this:
Click the button TRUE or FALSE to answer the question; Click POST SCORE, log the score user got. All the infomations will be upload to Hianalytics, and you can see these infomations in real time using Real-time.
Click button SETTINGS:
You will be asked what your favorite sport is. This choice will be logged to Hianalytics as a User Property.
If you want to evaluate more about HMS Core, r/HMSCore on Reddit is for you to keep up with latest news about HMS Core, and to exchange insights with other developers.
If you have questions about how to use HMS samples, try the following options:
huawei-mobile-services
.If you run into a bug in our samples, please submit an issue to the Repository. Even better you can submit a Pull Request with a fix.
HmsAnalyticsKitDemo is licensed under the Apache License, version 2.0.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。