umeng / mp-demos Goto Github PK
View Code? Open in Web Editor NEW友盟+小程序统计sdk,小游戏统计sdk demo
友盟+小程序统计sdk,小游戏统计sdk demo
用滴滴开源框架 MPX 开发的小程序,使用友盟小程序统计,数据不会没有发送。
无论是通过AppId 和 secret 自动获取 openid 还是代码 方式 wx.uma.setOpenid(openid) 都没有发送数据(日志没有数据发送)
wepy 我测试了,没有问题,是正常的。
请大佬们支持一下 MPX , 方便的话提供一个案例。
友盟小程序的sdk使用后,小程序的onShareAppMessage功能是不是取不到that.data里面的值
在main.js中引入友盟不进行初始化,会导致小程序不能自定义分享。
原生api 配置项 enableVerify :false 可以支持关闭剪切板
目前taro不能支持
代码如下
uma.init({ appKey: '5edf156d978eea085d11e13f', useOpenid: true, autoGetOpenid: true, debug: !true, enableVerify: false })
版本:
"umtrack-wx": "^2.3.5"
每次小程序在初始化的时候,控制台会显示友盟SDK集成成功和数据发送成功的提醒,同时也会有getStorage:fail data not found的警告
请问这里的getStorage:fail data not found会对统计数据有影响吗?
友盟微信小程序sdk版本:[email protected]
控制台提示:
[UMENG] -- cache初始化成功: {}
[UMENG] -- Lib对象初始化成功
[UMENG] -- setOpenId: xxxxxxxxxx
[UMENG] -- showOptions: xxxxxxx
[UMENG] -- session options: xxxxx
[UMENG] -- 开始新的session xxxxxxx
[UMENG] -- setSessionId: xxxxxxx
[UMENG] -- 安装Lib接口成功
[UMENG] -- SDK集成成功
[UMENG] -- um_userid: getStorage:fail data not found
[UMENG] -- um_provider: getStorage:fail data not found
[UMENG] -- um_unid: getStorage:fail data not found
[UMENG] -- 数据发送成功: xxxxxx
看到这个issues说的类似的问题
mpvue小程序集成友盟,控制台提示集成成功,友盟后台数据统计不上 #10
已经做到了
uma.init({
appKey: appKey,
useOpenid: true,
autoGetOpenid: false,
debug: isDebug
});
[UMENG] -- 未命中可用服务,求解
taro 集成友盟统计报错 微信小程序
"umtrack-wx": "^2.3.6"
Taro CLI 3.0.7 environment info:
System:
OS: Windows 10
Binaries:
Node: 10.16.0 - E:\nodejs\node.EXE
Yarn: 1.22.4 - C:\Users\Administrator\AppData\Roaming\npm\yarn.CMD
npm: 6.9.0 - E:\nodejs\npm.CMD
VM1085:1 MiniProgramError
Cannot assign to read only property 'onLaunch' of object '#'
TypeError: Cannot assign to read only property 'onLaunch' of object '#'
at D (http://127.0.0.1:26159/appservice/app.js:3205:8533)
at App (http://127.0.0.1:26159/appservice/app.js:3205:28326)
at Module../src/app.js (http://127.0.0.1:26159/appservice/app.js:3303:12)
at webpack_require (http://127.0.0.1:26159/appservice/runtime.js:81:30)
at checkDeferredModules (http://127.0.0.1:26159/appservice/runtime.js:47:23)
at Array.webpackJsonpCallback [as push] (http://127.0.0.1:26159/appservice/runtime.js:34:19)
at http://127.0.0.1:26159/appservice/app.js:6:49
at require (http://127.0.0.1:26159/appservice/__dev__/WAService.js:2:2112001)
at :1:1
at doWhenAllScriptLoaded (http://127.0.0.1:26159/appservice/appservice?t=1597288932661:5490:21)
控制台提示:
[UMENG] -- um_cache_5ecc727cdbc2ec0816fa16a4: getStorage:fail data not found
[UMENG] -- cache初始化成功: {}
[UMENG] -- Lib对象初始化成功
[UMENG] -- 安装Lib接口成功
[UMENG] -- SDK集成成功
[UMENG] -- um_userid: getStorage:fail data not found
[UMENG] -- um_provider: getStorage:fail data not found
[UMENG] -- um_uuid: getStorage:fail data not found
后台统计无数据,是什么原因呢?麻烦看一下
Use Taro and follow the mp-demos, get the error 'wx is not defined'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.