Showing
3 changed files
with
28 additions
and
1 deletions
| 1 | +var mta=require('mta-wechat-analysis') | ||
| 1 | var uri_dc = require('utils/uri.js') | 2 | var uri_dc = require('utils/uri.js') |
| 2 | global.regeneratorRuntime = require('lib/regenerator/runtime-module') | 3 | global.regeneratorRuntime = require('lib/regenerator/runtime-module') |
| 3 | 4 | ||
| @@ -26,6 +27,14 @@ App({ | @@ -26,6 +27,14 @@ App({ | ||
| 26 | this.getSystemInfo(); | 27 | this.getSystemInfo(); |
| 27 | this.openid=await this.getOpenid(); | 28 | this.openid=await this.getOpenid(); |
| 28 | console.log('this.openid',this.openid); | 29 | console.log('this.openid',this.openid); |
| 30 | + mta.App.init({ | ||
| 31 | + "appID":"500667280", | ||
| 32 | + "eventID":"500667287", | ||
| 33 | + "statPullDownFresh":true, | ||
| 34 | + "statShareApp":true, | ||
| 35 | + "statReachBottom":true, | ||
| 36 | + "lauchOpts":opt, //渠道分析 | ||
| 37 | + }); | ||
| 29 | }, | 38 | }, |
| 30 | onShow:async function(){ | 39 | onShow:async function(){ |
| 31 | if (wx.canIUse('getUpdateManager')) { | 40 | if (wx.canIUse('getUpdateManager')) { |
package.json
0 → 100644
| 1 | +{ | ||
| 2 | + "name": "xcx-book", | ||
| 3 | + "version": "1.0.0", | ||
| 4 | + "description": "", | ||
| 5 | + "main": "app.js", | ||
| 6 | + "scripts": { | ||
| 7 | + "test": "echo \"Error: no test specified\" && exit 1" | ||
| 8 | + }, | ||
| 9 | + "repository": { | ||
| 10 | + "type": "git", | ||
| 11 | + "url": "http://123.56.79.57/xt/xcx-book.git" | ||
| 12 | + }, | ||
| 13 | + "author": "", | ||
| 14 | + "license": "ISC", | ||
| 15 | + "dependencies": { | ||
| 16 | + "mta-wechat-analysis": "^1.3.7" | ||
| 17 | + } | ||
| 18 | +} |
-
Please register or login to post a comment