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