From 8127a787c66ca6a52b280440175e90ec16da3ff4 Mon Sep 17 00:00:00 2001 From: yanyilin Date: Tue, 11 Jan 2022 12:13:02 +0000 Subject: [PATCH] add docs/app-statistic.md. --- docs/app-statistic.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/app-statistic.md diff --git a/docs/app-statistic.md b/docs/app-statistic.md new file mode 100644 index 000000000..10b8b404f --- /dev/null +++ b/docs/app-statistic.md @@ -0,0 +1,22 @@ +App端统计模块封装了市场上主流的三方移动App统计SDK,提供JS API统一调用统计功能。 + +|项目类型|API| +|:-|:-| +|uni-app|uni-app暂时没有封装统计API,建议使用[uni统计](https://tongji.dcloud.io/)| +|5+ App|[plus.statistic.*](https://www.html5plus.org/doc/zh_cn/statistic.html) + +注意:打包时勾选三方统计模块后会自动统计应用日活、启动次数等数据,统计API是为了扩展自定义统计数据时使用。 + +**uni-app自带uni统计,无需使用三方统计。三方统计增加包体积且无法做到自带的免埋点采集行为数据。详见:[https://tongji.dcloud.io/](https://tongji.dcloud.io/)** + +使用统计功能需在项目manifest.json的“App模块配置”中勾选“Statistic(统计)”,并根据项目实际情况勾选使用的三方统计平台: +![](https://partner-dcloud-native.oss-cn-hangzhou.aliyuncs.com/images/uniapp/statistic/moudules.png) + +> 提示:统计模块参数配置需提交云端打包后才能生效,真机运行调试时请使用[自定义基座](http://ask.dcloud.net.cn/article/35115) + + +支持的三方统计平台: +- [友盟统计](https://uniapp.dcloud.io/app-statistic-umeng) +- [Google统计](https://uniapp.dcloud.io/app-statistic-google) +HBuilderX3.3.7+版本支持 + -- GitLab