From f78400395b795564bdca998597c7de1356fbbf13 Mon Sep 17 00:00:00 2001 From: "younghoon100.park" Date: Tue, 2 Jul 2024 18:24:02 +0900 Subject: [PATCH] [Log] added, log menu: "Welcome Event" --- com.twin.app.shoptime/src/App/deepLinkHandler.js | 2 +- com.twin.app.shoptime/src/utils/Config.js | 3 ++- .../src/views/WelcomeEventPanel/WelcomeEventPanel.jsx | 6 +++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/com.twin.app.shoptime/src/App/deepLinkHandler.js b/com.twin.app.shoptime/src/App/deepLinkHandler.js index 2d60658c..51c18cb5 100644 --- a/com.twin.app.shoptime/src/App/deepLinkHandler.js +++ b/com.twin.app.shoptime/src/App/deepLinkHandler.js @@ -62,7 +62,7 @@ export const getMenuByTargetContent = (contentTarget) => { } else if (type === "HP") { return LOG_MENU.HOT_PICKS; } else if (type === "WE") { - return "Temp, Welcome Event"; // pyh todo, menu 문의 + return LOG_MENU.WELCOME_EVENT; } else if (type === "OS") { return LOG_MENU.ON_SALE; } else if (type === "BS") { diff --git a/com.twin.app.shoptime/src/utils/Config.js b/com.twin.app.shoptime/src/utils/Config.js index c7e6e0bc..63848aca 100644 --- a/com.twin.app.shoptime/src/utils/Config.js +++ b/com.twin.app.shoptime/src/utils/Config.js @@ -220,7 +220,7 @@ export const LOG_TP_NO = { LG_ACCOUNT_LOGIN: " 700", }; -// TV log update, 로그 layout_240509_Themepage추가.xlsx +// TV log update export const LOG_MENU = { APP: "App", HOME_BANNER_1: "HomeBanner:1", @@ -239,6 +239,7 @@ export const LOG_MENU = { UNKNOWN: "Unknown", EVENT_POPUP: "Event Popup", // completed + WELCOME_EVENT: "Welcome Event", TERMS_CONDITIONS: "Terms & Conditions", // completed HOME_TOP: "Home/Top", // completed diff --git a/com.twin.app.shoptime/src/views/WelcomeEventPanel/WelcomeEventPanel.jsx b/com.twin.app.shoptime/src/views/WelcomeEventPanel/WelcomeEventPanel.jsx index 81bcae6d..3dc8c119 100644 --- a/com.twin.app.shoptime/src/views/WelcomeEventPanel/WelcomeEventPanel.jsx +++ b/com.twin.app.shoptime/src/views/WelcomeEventPanel/WelcomeEventPanel.jsx @@ -50,7 +50,7 @@ const getShopTpNm = (evntTpCd) => { }; const WelcomeEventPanel = ({ spotlightId }) => { - const { sendLogShopByMobile } = useLogService(); + const { sendLogGNB, sendLogShopByMobile } = useLogService(); const dispatch = useDispatch(); @@ -125,6 +125,10 @@ const WelcomeEventPanel = ({ spotlightId }) => { } }, [billCpnSno, dispatch, eventDatas, evntId, evntTpCd, userNumber]); + useEffect(() => { + sendLogGNB(Config.LOG_MENU.WELCOME_EVENT); + }, [sendLogGNB]); + useEffect(() => { if (eventIssuedStatusSuccess === 0 && eventIssuedStatusSuccess !== null) { dispatch(setShowPopup(Config.ACTIVE_POPUP.smsPopup));