Commit ede7fd63 authored by 张宏至's avatar 张宏至

add:用户中心神策登录埋点

parent f26ad521
......@@ -357,12 +357,12 @@ public class UserServiceImpl implements IUserService, IBaseController {
}
try {
String scDeviceId=request.getHeader("scDeviceId");
log.info("scDeviceId{}",scDeviceId);
log.info("---------------scDeviceId{}",scDeviceId);
if(!StringUtils.isEmpty(scDeviceId)){
iSensorsAnalytics.trackSignUp( user.getUuid(),scDeviceId);
}
String terminal=request.getHeader("terminal");
log.info("terminal{}",terminal);
log.info("---------------terminal{}",terminal);
if(!StringUtils.isEmpty(terminal)&&"APP".equals(terminal)){
if(register){
EventRecord userRecord = EventRecord.builder().setDistinctId(user.getUuid()).isLoginId(Boolean.TRUE)
......@@ -377,6 +377,7 @@ public class UserServiceImpl implements IUserService, IBaseController {
}
iSensorsAnalytics.flush();
}else {
log.info("老神策埋点{},{}------------",user.getRegisteredFrom(),user.getUuid());
EventRecord userRecord = EventRecord.builder().setDistinctId(user.getUuid()).isLoginId(Boolean.TRUE)
.setEventName("PD_WUXIEC_UserLoginVccorCash")
.addProperty("son_channel_id", user.getRegisteredFrom())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment