Showing
3 changed files
with
27 additions
and
0 deletions
| 1 | // cookbook/index.js | 1 | // cookbook/index.js |
| 2 | +var mta=require('mta-wechat-analysis') | ||
| 2 | import util from '../../utils/util'; | 3 | import util from '../../utils/util'; |
| 3 | import App from '../../utils/api'; | 4 | import App from '../../utils/api'; |
| 4 | const {regeneratorRuntime} = global | 5 | const {regeneratorRuntime} = global |
| @@ -34,6 +35,14 @@ Page({ | @@ -34,6 +35,14 @@ Page({ | ||
| 34 | }) | 35 | }) |
| 35 | this.getCookList(); | 36 | this.getCookList(); |
| 36 | this.initOrder(); | 37 | this.initOrder(); |
| 38 | + mta.Page.init({ | ||
| 39 | + "appID":"500667280", | ||
| 40 | + "eventID":"500667287", | ||
| 41 | + "statPullDownFresh":true, | ||
| 42 | + "statShareApp":true, | ||
| 43 | + "statReachBottom":true, | ||
| 44 | + "lauchOpts":options, //渠道分析 | ||
| 45 | + }); | ||
| 37 | }, | 46 | }, |
| 38 | initOrder(){ | 47 | initOrder(){ |
| 39 | App.Advance.CreateOrder({ | 48 | App.Advance.CreateOrder({ |
| 1 | // pages/customer/detail_owner.js | 1 | // pages/customer/detail_owner.js |
| 2 | +var mta=require('mta-wechat-analysis') | ||
| 2 | import util from '../../utils/util'; | 3 | import util from '../../utils/util'; |
| 3 | import App from '../../utils/api'; | 4 | import App from '../../utils/api'; |
| 4 | const {regeneratorRuntime} = global | 5 | const {regeneratorRuntime} = global |
| @@ -24,6 +25,14 @@ Page({ | @@ -24,6 +25,14 @@ Page({ | ||
| 24 | invite_name:invite_name | 25 | invite_name:invite_name |
| 25 | }) | 26 | }) |
| 26 | } | 27 | } |
| 28 | + mta.Page.init({ | ||
| 29 | + "appID":"500667280", | ||
| 30 | + "eventID":"500667287", | ||
| 31 | + "statPullDownFresh":true, | ||
| 32 | + "statShareApp":true, | ||
| 33 | + "statReachBottom":true, | ||
| 34 | + "lauchOpts":options, //渠道分析 | ||
| 35 | + }); | ||
| 27 | }, | 36 | }, |
| 28 | 37 | ||
| 29 | /** | 38 | /** |
| 1 | // pages/customer/detail_owner.js | 1 | // pages/customer/detail_owner.js |
| 2 | +var mta=require('mta-wechat-analysis') | ||
| 2 | import util from '../../utils/util'; | 3 | import util from '../../utils/util'; |
| 3 | import App from '../../utils/api'; | 4 | import App from '../../utils/api'; |
| 4 | const {regeneratorRuntime} = global | 5 | const {regeneratorRuntime} = global |
| @@ -24,6 +25,14 @@ Page({ | @@ -24,6 +25,14 @@ Page({ | ||
| 24 | invite_name:invite_name | 25 | invite_name:invite_name |
| 25 | }) | 26 | }) |
| 26 | } | 27 | } |
| 28 | + mta.Page.init({ | ||
| 29 | + "appID":"500667280", | ||
| 30 | + "eventID":"500667287", | ||
| 31 | + "statPullDownFresh":true, | ||
| 32 | + "statShareApp":true, | ||
| 33 | + "statReachBottom":true, | ||
| 34 | + "lauchOpts":options, //渠道分析 | ||
| 35 | + }); | ||
| 27 | }, | 36 | }, |
| 28 | 37 | ||
| 29 | /** | 38 | /** |
-
Please register or login to post a comment