File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ var conf = {
2+ // 神策分析注册在APP全局函数中的变量名,在非app.js中可以通过getApp().sensors(你这里定义的名字来使用)
3+ name : 'sensors' ,
4+ // 如果要通过sdk自动获取openid,需要在神策分析中配置appid和appsercret,并在这里标志appid,不需要的话,不用填。
5+ appid : 'xxxxx' ,
6+ // 神策分析数据接收地址
7+ // server_url: 'https://xxxxx.datasink.xxxx/sa.gif?project=default&token=27eeee',
8+ server_url :'https://test-syg122.datasink.sensorsdata.cn/sa.gif' ,
9+ //默认使用队列发数据时候,两条数据发送间的最大间隔
10+ send_timeout : 1000 ,
11+ // 发送事件的时间使用客户端时间还是服务端时间
12+ use_client_time : false ,
13+ // 是否允许控制台打印查看埋点数据(建议开启查看)
14+ show_log : true ,
15+ // 是否允许修改onShareMessage里return的path,用来增加(用户id,分享层级,当前的path),在app onshow中自动获取这些参数来查看具体分享来源,层级等
16+ allow_amend_share_path : true ,
17+ // 是否自动采集如下事件(建议开启)
18+ autoTrack :{
19+ appLaunch :true , //是否采集 $MPLaunch 事件,true 代表开启。
20+ appShow :true , //是否采集 $MPShow 事件,true 代表开启。
21+ appHide :true , //是否采集 $MPHide 事件,true 代表开启。
22+ pageShow :true , //是否采集 $MPViewScreen 事件,true 代表开启。
23+ pageShare :true //是否采集 $MPShare 事件,true 代表开启。
24+ } ,
25+ // 是否集成了插件!重要!
26+ is_plugin : false
27+ } ;
28+
29+ module . exports = conf ;
You can’t perform that action at this time.
0 commit comments