[통합로그 No.5] Home 상품 클릭 로그 수집 ( 베스트셀러)

This commit is contained in:
dongyoungKo
2025-05-16 16:27:50 +09:00
parent e9ffe0db69
commit d291f78e7b
3 changed files with 22 additions and 2 deletions

View File

@@ -1599,7 +1599,7 @@ export const sendLogTotalRecommend = (params) => (dispatch, getState) => {
const logCreateTime = new Date().toISOString(); const logCreateTime = new Date().toISOString();
console.log("#params", params); // console.log("#params", params);
const newParams = { const newParams = {
...params, ...params,

View File

@@ -12,7 +12,11 @@ import TItemCard from "../../../components/TItemCard/TItemCard";
import TScroller from "../../../components/TScroller/TScroller"; import TScroller from "../../../components/TScroller/TScroller";
import useScrollReset from "../../../hooks/useScrollReset"; import useScrollReset from "../../../hooks/useScrollReset";
import useScrollTo from "../../../hooks/useScrollTo"; import useScrollTo from "../../../hooks/useScrollTo";
import { panel_names } from "../../../utils/Config"; import {
LOG_CONTEXT_NAME,
LOG_MESSAGE_ID,
panel_names,
} from "../../../utils/Config";
import { $L, scaleW } from "../../../utils/helperMethods"; import { $L, scaleW } from "../../../utils/helperMethods";
import { SpotlightIds } from "../../../utils/SpotlightIds"; import { SpotlightIds } from "../../../utils/SpotlightIds";
import css from "./BestSeller.module.less"; import css from "./BestSeller.module.less";
@@ -29,6 +33,8 @@ const BestSeller = ({
spotlightId, spotlightId,
handleItemFocus, handleItemFocus,
handleShelfFocus, handleShelfFocus,
shelfLocation,
shelfTitle,
}) => { }) => {
const { getScrollTo, scrollLeft } = useScrollTo(); const { getScrollTo, scrollLeft } = useScrollTo();
const { handleScrollReset, handleStopScrolling } = useScrollReset( const { handleScrollReset, handleStopScrolling } = useScrollReset(
@@ -177,6 +183,9 @@ const BestSeller = ({
rankOrd, rankOrd,
patnrId, patnrId,
offerInfo, offerInfo,
brndNm,
patncNm,
catNm,
}, },
itemIndex itemIndex
) => { ) => {
@@ -191,6 +200,15 @@ const BestSeller = ({
return ( return (
<TItemCard <TItemCard
key={"subItem" + itemIndex} key={"subItem" + itemIndex}
contextName={LOG_CONTEXT_NAME.HOME}
messageId={LOG_MESSAGE_ID.SHELF_CLICK}
location={itemIndex + 1}
shelfId={spotlightId}
shelfLocation={shelfLocation}
shelfTitle={shelfTitle}
patnerName={patncNm}
brandName={brndNm}
catNm={catNm}
imageAlt={prdtId} imageAlt={prdtId}
imageSource={imgUrl} imageSource={imgUrl}
priceInfo={priceInfo} priceInfo={priceInfo}

View File

@@ -367,6 +367,8 @@ const HomePanel = ({ isOnTop }) => {
el.shptmApphmDspyOptNm el.shptmApphmDspyOptNm
)} )}
handleItemFocus={handleItemFocus(el.shptmApphmDspyOptCd)} handleItemFocus={handleItemFocus(el.shptmApphmDspyOptCd)}
shelfLocation={el.expsOrd}
shelfTitle={el.shptmApphmDspyOptNm}
/> />
); );
} else break; } else break;