checkout 화면 내 버튼 클릭시 정보수집
This commit is contained in:
@@ -16,6 +16,7 @@ import {
|
||||
sendLogGNB,
|
||||
sendLogMyInfoEdit,
|
||||
sendLogPaymentEntry,
|
||||
sendLogTotalRecommend,
|
||||
} from "../../actions/logActions";
|
||||
import { popPanel } from "../../actions/panelActions";
|
||||
import TBody from "../../components/TBody/TBody";
|
||||
@@ -200,6 +201,11 @@ export default function CheckOutPanel({ panelInfo }) {
|
||||
const toggleOrderSideBar = useCallback(() => {
|
||||
if (!orderSideBarOpen) {
|
||||
dispatch(sendLogCheckOutBtnClick({ btnNm: "ORDER ITEMS" }));
|
||||
dispatch(sendLogTotalRecommend({
|
||||
buttonTitle: "ORDER ITEMS",
|
||||
buttonId: "checkout_order_items_view"
|
||||
}));
|
||||
console.log('oder items')
|
||||
}
|
||||
|
||||
setOrderSideBarOpen((prev) => !prev);
|
||||
@@ -209,6 +215,10 @@ export default function CheckOutPanel({ panelInfo }) {
|
||||
const toggleOfferSideBar = useCallback(() => {
|
||||
if (!offerSideBarOpen) {
|
||||
dispatch(sendLogCheckOutBtnClick({ btnNm: "OFFERS & PROMOTION" }));
|
||||
dispatch(sendLogTotalRecommend({
|
||||
buttonTitle: "OFFERS & PROMOTION",
|
||||
buttonId: "checkout_offers_promotion_view"
|
||||
}));
|
||||
}
|
||||
|
||||
setOfferSideBarOpen((prev) => !prev);
|
||||
@@ -235,7 +245,11 @@ export default function CheckOutPanel({ panelInfo }) {
|
||||
const selectedTerms = empTermsData.find(
|
||||
(term) => term.termsID === termsID
|
||||
);
|
||||
|
||||
|
||||
dispatch(sendLogTotalRecommend({
|
||||
buttonTitle: selectedTerms.termsTypeName,
|
||||
buttonId: `checkout_terms_${selectedTerms.termsTypeName.toLowerCase().replace(/\s+/g, '_')}`
|
||||
}))
|
||||
setCurrentTerms(selectedTerms);
|
||||
dispatch(setShowPopup(Config.ACTIVE_POPUP.termsPopup));
|
||||
Spotlight.focus("spotlightId_TbuttonScrollerDown");
|
||||
|
||||
Reference in New Issue
Block a user