Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
d3354a5a
Commit
d3354a5a
authored
Jan 24, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
埋点
parent
70d1dce9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
config/dev.env.js
+1
-1
src/main.js
+6
-4
No files found.
config/dev.env.js
View file @
d3354a5a
...
...
@@ -29,7 +29,7 @@ module.exports = merge(prodEnv, {//zjgyl
AREA_JSON
:
'"https://mayi-newshop.oss-cn-shanghai.aliyuncs.com/static/js/app.area.json"'
,
WLY_PROD_MARKETING
:
'"https://uat-zanmall-m.cipmp.com"'
,
MANALYTICS_HOST
:
'"https://analytics.mayi888.cn/ma.gif"'
,
CLK_LOG_URL
:
'"https://clklog.mayi888.cn/clklog_receiver/api/gp"'
CLK_LOG_URL
:
'"https://clklog.mayi888.cn/clklog_receiver/api/gp
?project=clklogapp
"'
// IMG_DOMAIN: '"http://cdn.mayi888.com"',
})
src/main.js
View file @
d3354a5a
...
...
@@ -51,11 +51,11 @@ Vue.prototype.$mpAnalytics = mpAnalytics;
// 神策埋点
let
sensors
=
require
(
'../node_modules/sa-sdk-miniprogram/sensorsdata.min.js'
);
sensors
.
init
({
name
:
'
mayi-minip
'
,
sensors
.
setPara
({
name
:
'
sensors
'
,
server_url
:
process
.
env
.
CLK_LOG_URL
,
// 全埋点控制开关
autoTrack
:{
autoTrack
:
{
appLaunch
:
true
,
// 默认为 true,false 则关闭 $MPLaunch 事件采集
appShow
:
true
,
// 默认为 true,false 则关闭 $MPShow 事件采集
appHide
:
true
,
// 默认为 true,false 则关闭 $MPHide 事件采集
...
...
@@ -63,10 +63,12 @@ sensors.init({
pageShare
:
true
,
// 默认为 true,false 则关闭 $MPShare 事件采集
mpClick
:
true
,
// 默认为 false,true 则开启 $MPClick 事件采集
mpFavorite
:
true
,
// 默认为 true,false 则关闭 $MPAddFavorites 事件采集
pageLeave
:
true
// 默认为 false, true 则开启 $MPPageLeave事件采集
pageLeave
:
true
,
// 默认为 false, true 则开启 $MPPageLeave事件采集
},
show_log
:
true
});
sensors
.
init
();
Vue
.
prototype
.
$sensors
=
sensors
;
const
app
=
new
Vue
(
App
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment