|
@@ -1,4 +1,4 @@
|
|
|
-import { fb_setPixelID } from "../tracking/FacebookPixel"
|
|
|
|
|
|
|
+import { initTrackAll ,trackEvent} from "../tracking/TrackAll"
|
|
|
import {createAsyncThunk, createSlice} from "@reduxjs/toolkit";
|
|
import {createAsyncThunk, createSlice} from "@reduxjs/toolkit";
|
|
|
import {routes} from "@db/routes";
|
|
import {routes} from "@db/routes";
|
|
|
import {
|
|
import {
|
|
@@ -157,9 +157,8 @@ const reducerRoutes=(state,action)=>{
|
|
|
global.pf=conf.pf;
|
|
global.pf=conf.pf;
|
|
|
//平台配置
|
|
//平台配置
|
|
|
if(!!conf.pf&&!!conf.pf.id){
|
|
if(!!conf.pf&&!!conf.pf.id){
|
|
|
- if(conf.pf.type==="fb"){
|
|
|
|
|
- fb_setPixelID(conf.pf.id);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ let {type,id}=conf.pf;
|
|
|
|
|
+ initTrackAll(type,id)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
Object.assign(state, {routes:state.routes,asyncRoutes:data,styles:styles,blocks:blocks,...generData,isLogin:isLogin,userInfo:userInfo,hallServerUrl:hallServerUrl});
|
|
Object.assign(state, {routes:state.routes,asyncRoutes:data,styles:styles,blocks:blocks,...generData,isLogin:isLogin,userInfo:userInfo,hallServerUrl:hallServerUrl});
|
|
@@ -201,6 +200,10 @@ const parseLogin=(state,action,arg,isShowMsg=true)=>{
|
|
|
if(isShowMsg)toast.success(msg);
|
|
if(isShowMsg)toast.success(msg);
|
|
|
//请求pay
|
|
//请求pay
|
|
|
// global.dispatch(reqPayConfig(data));
|
|
// global.dispatch(reqPayConfig(data));
|
|
|
|
|
+ if(!!data.reg){
|
|
|
|
|
+ //新注册的
|
|
|
|
|
+ trackEvent("CompleteRegistration",{external_id:data.UserID})
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|