Skip to content

Commit

Permalink
Feat 接入百度统计
Browse files Browse the repository at this point in the history
  • Loading branch information
Misaka-1314 committed Feb 7, 2025
1 parent 4bcf3cb commit 19b4ca0
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions miniprogram/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import config from '@utils/config';
import util from '@utils/util';
import log from '@utils/log';

import baidu_sdk from '@utils/sdk/mtj-wx-sdk';

App({
onLaunch(options) {
log.info("App 启动参数", options)
Expand Down
39 changes: 39 additions & 0 deletions miniprogram/utils/sdk/mtj-wx-sdk.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* @file 百度移动统计配置文件
*/

module.exports = {
/**
* 从百度移动统计获取的AppKey
* @type {string}
*/
appKey: '2770bfeafe',

/**
* 是否使用了插件
* @type {boolean}
*/
hasPlugin: false,

/**
* 是否获取当前的地理位置和速度信息
* @type {boolean}
*/
getLocation: false,

/**
* 是否获取组件滚动信息
* @type {boolean}
*/
getComponentScroll: false,
/**
* 是否开启了A/B 测试
* @type {boolean}
*/
hasABTest: false,
/**
* 是否开启热力图功能
* @type {boolean}
*/
hasHeatmap: false,
};
1 change: 1 addition & 0 deletions miniprogram/utils/sdk/mtj-wx-sdk.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 19b4ca0

Please sign in to comment.