youmaylike click 로그 수집 데이터 누락 수정
This commit is contained in:
@@ -77,6 +77,9 @@ export default memo(function TItemCard({
|
||||
categoryTitle,
|
||||
curationId,
|
||||
curationTitle,
|
||||
nowProductId,
|
||||
nowCategory,
|
||||
nowProductTitle,
|
||||
...rest
|
||||
}) {
|
||||
const dispatch = useDispatch();
|
||||
@@ -126,6 +129,9 @@ export default memo(function TItemCard({
|
||||
shelfTitle: shelfTitle,
|
||||
productId: productId,
|
||||
productTitle: productName,
|
||||
nowProductId: nowProductId,
|
||||
nowCategory: nowCategory,
|
||||
nowProductTitle: nowProductTitle,
|
||||
partner: patnerName,
|
||||
brand: brandName,
|
||||
price: originalPrice,
|
||||
|
||||
@@ -30,7 +30,6 @@ import css from "./YouMayLike.module.less";
|
||||
import { sendLogTotalRecommend } from "../../../actions/logActions";
|
||||
import * as Config from "../../../utils/Config";
|
||||
|
||||
|
||||
const Container = SpotlightContainerDecorator(
|
||||
{ enterTo: "default-element" },
|
||||
"div"
|
||||
@@ -39,7 +38,6 @@ const Container = SpotlightContainerDecorator(
|
||||
const SpottableComponent = Spottable("div");
|
||||
export default memo(function YouMayLike({
|
||||
isUnable,
|
||||
|
||||
panelInfo,
|
||||
productInfo,
|
||||
setSelectedIndex,
|
||||
@@ -58,8 +56,6 @@ export default memo(function YouMayLike({
|
||||
(state) => state.home.themeCurationDetailInfoData
|
||||
);
|
||||
|
||||
|
||||
|
||||
const cursorOpen = useRef(new Job((func) => func(), 1000));
|
||||
|
||||
const launchedFromPlayer = useMemo(() => {
|
||||
@@ -129,38 +125,25 @@ export default memo(function YouMayLike({
|
||||
setExpanded((prev) => !prev);
|
||||
}, []);
|
||||
|
||||
|
||||
const renderItem = useCallback(
|
||||
({ index, ...rest }) => {
|
||||
const { imgUrl, patnrId, prdtId, prdtNm, priceInfo, offerInfo, patncNm, brndNm, lgCatCd} =
|
||||
youmaylikeData[index];
|
||||
const {
|
||||
imgUrl,
|
||||
patnrId,
|
||||
prdtId,
|
||||
prdtNm,
|
||||
priceInfo,
|
||||
offerInfo,
|
||||
patncNm,
|
||||
brndNm,
|
||||
lgCatCd,
|
||||
} = youmaylikeData[index];
|
||||
|
||||
const handleItemClick = () => {
|
||||
console.log('priceInfo', priceInfo);
|
||||
const splittedPriceInfo = priceInfo.split("|").map((item) => item.trim());
|
||||
const discountRate = splittedPriceInfo[4];
|
||||
const logParams = {
|
||||
productId: patnrId,
|
||||
productTitle: prdtNm,
|
||||
category: lgCatCd,
|
||||
nowProductId: productInfo?.prdtId,
|
||||
nowProductTitle: productInfo?.prdtNm,
|
||||
nowCategory: productInfo?.catNm,
|
||||
discount: discountRate,
|
||||
price: priceInfo,
|
||||
partner: patncNm,
|
||||
brand: brndNm,
|
||||
contextName: Config.LOG_CONTEXT_NAME.YOUMAYLIKE,
|
||||
messageId: Config.LOG_MESSAGE_ID.CONTENTCLICK
|
||||
};
|
||||
setExpanded(false);
|
||||
setSelectedIndex(0);
|
||||
dispatch(finishVideoPreview());
|
||||
dispatch(popPanel(panel_names.DETAIL_PANEL));
|
||||
dispatch(
|
||||
sendLogTotalRecommend(logParams)
|
||||
);
|
||||
console.log(logParams);
|
||||
|
||||
setContainerLastFocusedElement(null, ["indicator-GridListContainer"]);
|
||||
if (themeProductInfos && themeProductInfos.length > 0) {
|
||||
@@ -183,6 +166,16 @@ export default memo(function YouMayLike({
|
||||
<TItemCard
|
||||
{...rest}
|
||||
key={prdtId}
|
||||
contextName={Config.LOG_CONTEXT_NAME.YOUMAYLIKE}
|
||||
messageId={Config.LOG_MESSAGE_ID.CONTENTCLICK}
|
||||
productId={prdtId}
|
||||
productTitle={prdtNm}
|
||||
nowProductId={productInfo?.prdtId}
|
||||
nowProductTitle={productInfo?.prdtNm}
|
||||
nowCategory={productInfo?.catNm}
|
||||
catNm={lgCatCd}
|
||||
patnerName={patncNm}
|
||||
brandName={brndNm}
|
||||
imageAlt={prdtId}
|
||||
imageSource={imgUrl}
|
||||
priceInfo={priceInfo}
|
||||
|
||||
Reference in New Issue
Block a user