[통합로그API No.31] Shoptime app이 실행되거나 종료됐을때 로그 정보 수집
This commit is contained in:
@@ -41,6 +41,7 @@ import MainView from "../views/MainView/MainView";
|
||||
import css from "./App.module.less";
|
||||
import { handleBypassLink } from "./bypassLinkHandler";
|
||||
import { handleDeepLink } from "./deepLinkHandler";
|
||||
import { sendLogTotalRecommend } from "../actions/logActions";
|
||||
|
||||
let foreGroundChangeTimer = null;
|
||||
|
||||
@@ -193,6 +194,13 @@ function AppBase(props) {
|
||||
|
||||
dispatch(handleDeepLink(launchParams?.contentTarget));
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
dispatch(
|
||||
sendLogTotalRecommend({
|
||||
contextName: Config.LOG_CONTEXT_NAME.SHOPTIME,
|
||||
messageId: Config.LOG_MESSAGE_ID.VIEW_CHANGE,
|
||||
visible: true,
|
||||
})
|
||||
);
|
||||
clearLaunchParams();
|
||||
}
|
||||
},
|
||||
|
||||
@@ -583,6 +583,7 @@ export const ERROR_MESSAGES_GROUPS = [
|
||||
];
|
||||
|
||||
export const LOG_CONTEXT_NAME = {
|
||||
SHOPTIME: "shoptime",
|
||||
HOME: "shoptime.home",
|
||||
CHECKOUT: "shoptime.checkout",
|
||||
PINCODE: "shoptime.pincode",
|
||||
@@ -601,6 +602,7 @@ export const LOG_CONTEXT_NAME = {
|
||||
};
|
||||
|
||||
export const LOG_MESSAGE_ID = {
|
||||
VIEW_CHANGE: "AL_VIEW_CHANGE",
|
||||
HOME: "AL_HOME_SHOWN",
|
||||
BANNER: "AL_BANNER_SHOWN",
|
||||
PINCODE: "AL_PINCODE_BUTTON",
|
||||
|
||||
@@ -191,6 +191,14 @@ const HomePanel = ({ isOnTop }) => {
|
||||
|
||||
const onExit = useCallback(() => {
|
||||
dispatch(setExitApp());
|
||||
|
||||
dispatch(
|
||||
sendLogTotalRecommend({
|
||||
contextName: LOG_CONTEXT_NAME.SHOPTIME,
|
||||
messageId: LOG_MESSAGE_ID.VIEW_CHANGE,
|
||||
visible: false,
|
||||
})
|
||||
);
|
||||
}, [dispatch]);
|
||||
|
||||
const onClose = useCallback(() => {
|
||||
@@ -644,7 +652,7 @@ const HomePanel = ({ isOnTop }) => {
|
||||
onExit={onExit}
|
||||
onClose={onClose}
|
||||
hasButton
|
||||
button1Text={$L("Exit")}
|
||||
button1Text={$L("1232132131")}
|
||||
button2Text={$L("Cancel")}
|
||||
hasText
|
||||
title={$L("Exit Shop Time")}
|
||||
|
||||
@@ -14,7 +14,11 @@ import {
|
||||
import { registerDevice } from "../../actions/deviceActions";
|
||||
import { getWelcomeEventInfo } from "../../actions/eventActions";
|
||||
import { getHomeTerms } from "../../actions/homeActions";
|
||||
import { sendLogGNB, sendLogTerms } from "../../actions/logActions";
|
||||
import {
|
||||
sendLogGNB,
|
||||
sendLogTerms,
|
||||
sendLogTotalRecommend,
|
||||
} from "../../actions/logActions";
|
||||
import { popPanel, pushPanel } from "../../actions/panelActions";
|
||||
import TButton, { TYPES } from "../../components/TButton/TButton";
|
||||
import TButtonScroller from "../../components/TButtonScroller/TButtonScroller";
|
||||
@@ -113,6 +117,14 @@ export default function IntroPanel({
|
||||
|
||||
const onExit = useCallback(() => {
|
||||
dispatch(setExitApp());
|
||||
|
||||
dispatch(
|
||||
sendLogTotalRecommend({
|
||||
contextName: Config.LOG_CONTEXT_NAME.SHOPTIME,
|
||||
messageId: Config.LOG_MESSAGE_ID.VIEW_CHANGE,
|
||||
visible: false,
|
||||
})
|
||||
);
|
||||
}, [dispatch]);
|
||||
|
||||
const onCancel = useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user