[통합로그 No.5] Home 상품 클릭 로그 수집 ( 베스트셀러)
This commit is contained in:
@@ -12,7 +12,11 @@ import TItemCard from "../../../components/TItemCard/TItemCard";
|
||||
import TScroller from "../../../components/TScroller/TScroller";
|
||||
import useScrollReset from "../../../hooks/useScrollReset";
|
||||
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 { SpotlightIds } from "../../../utils/SpotlightIds";
|
||||
import css from "./BestSeller.module.less";
|
||||
@@ -29,6 +33,8 @@ const BestSeller = ({
|
||||
spotlightId,
|
||||
handleItemFocus,
|
||||
handleShelfFocus,
|
||||
shelfLocation,
|
||||
shelfTitle,
|
||||
}) => {
|
||||
const { getScrollTo, scrollLeft } = useScrollTo();
|
||||
const { handleScrollReset, handleStopScrolling } = useScrollReset(
|
||||
@@ -177,6 +183,9 @@ const BestSeller = ({
|
||||
rankOrd,
|
||||
patnrId,
|
||||
offerInfo,
|
||||
brndNm,
|
||||
patncNm,
|
||||
catNm,
|
||||
},
|
||||
itemIndex
|
||||
) => {
|
||||
@@ -191,6 +200,15 @@ const BestSeller = ({
|
||||
return (
|
||||
<TItemCard
|
||||
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}
|
||||
imageSource={imgUrl}
|
||||
priceInfo={priceInfo}
|
||||
|
||||
Reference in New Issue
Block a user