통합로그8 - featured brand 화면 shelef_content_click 수집 수정
This commit is contained in:
@@ -1,4 +1,11 @@
|
|||||||
import React, { memo, useCallback, useEffect, useMemo, useState } from "react";
|
import React, {
|
||||||
|
memo,
|
||||||
|
use,
|
||||||
|
useCallback,
|
||||||
|
useEffect,
|
||||||
|
useMemo,
|
||||||
|
useState,
|
||||||
|
} from "react";
|
||||||
|
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
import { useDispatch, useSelector } from "react-redux";
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
@@ -131,7 +138,7 @@ export default memo(function TItemCard({
|
|||||||
productId: productId,
|
productId: productId,
|
||||||
productTitle: productName,
|
productTitle: productName,
|
||||||
showId: showId,
|
showId: showId,
|
||||||
showTitle: showTitle,
|
showTitle: shelfTitle.includes("LIVE") ? contentTitle : showTitle,
|
||||||
nowProductId: nowProductId,
|
nowProductId: nowProductId,
|
||||||
nowCategory: nowCategory,
|
nowCategory: nowCategory,
|
||||||
nowProductTitle: nowProductTitle,
|
nowProductTitle: nowProductTitle,
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ let localLaunchParams = {
|
|||||||
// contentTarget: "V3_3000_AD:SR_SR_1",
|
// contentTarget: "V3_3000_AD:SR_SR_1",
|
||||||
// contentTarget: "V3_2006_HOMEBANNER:6241018_HP_1_1307_2",
|
// contentTarget: "V3_2006_HOMEBANNER:6241018_HP_1_1307_2",
|
||||||
// contentTarget: "V3_2004_HOMEBANNER:4241101_HP_9_889",
|
// contentTarget: "V3_2004_HOMEBANNER:4241101_HP_9_889",
|
||||||
contentTarget: "V3_2001_HOMEBANNER:1240712_TM_10",
|
// contentTarget: "V3_2001_HOMEBANNER:1240712_TM_10",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getLaunchParams = () => {
|
export const getLaunchParams = () => {
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ const FeaturedCategoryContents = ({
|
|||||||
spotlightId={spotlightId}
|
spotlightId={spotlightId}
|
||||||
shelfOrder={shelfOrder}
|
shelfOrder={shelfOrder}
|
||||||
shelfTitle={shelfTitle}
|
shelfTitle={shelfTitle}
|
||||||
|
selectedPatncNm={selectedPatncNm}
|
||||||
|
catNm={catNm}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<FeaturedCategoryProductGrid
|
<FeaturedCategoryProductGrid
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ export default function FeaturedCategoryProductList({
|
|||||||
spotlightId,
|
spotlightId,
|
||||||
shelfTitle,
|
shelfTitle,
|
||||||
shelfOrder,
|
shelfOrder,
|
||||||
|
selectedPatncNm,
|
||||||
|
catNm,
|
||||||
}) {
|
}) {
|
||||||
const { getScrollTo, scrollLeft } = useScrollTo();
|
const { getScrollTo, scrollLeft } = useScrollTo();
|
||||||
|
|
||||||
@@ -90,7 +92,6 @@ export default function FeaturedCategoryProductList({
|
|||||||
const handleClick = useCallback(
|
const handleClick = useCallback(
|
||||||
(prdtId) => (e) => {
|
(prdtId) => (e) => {
|
||||||
const tItemCard = e.currentTarget;
|
const tItemCard = e.currentTarget;
|
||||||
|
|
||||||
const lastFocusedTarget = Spotlight.getCurrent();
|
const lastFocusedTarget = Spotlight.getCurrent();
|
||||||
const lastFocusedTargetId =
|
const lastFocusedTargetId =
|
||||||
lastFocusedTarget?.getAttribute("data-spotlight-id");
|
lastFocusedTarget?.getAttribute("data-spotlight-id");
|
||||||
@@ -169,7 +170,8 @@ export default function FeaturedCategoryProductList({
|
|||||||
contextName={LOG_CONTEXT_NAME.FEATURED_BRANDS}
|
contextName={LOG_CONTEXT_NAME.FEATURED_BRANDS}
|
||||||
messageId={LOG_MESSAGE_ID.SHELF_CLICK}
|
messageId={LOG_MESSAGE_ID.SHELF_CLICK}
|
||||||
order={expsOrd}
|
order={expsOrd}
|
||||||
category={selectedCatCdLv1}
|
category={catNm}
|
||||||
|
patnerName={selectedPatncNm}
|
||||||
shelfLocation={shelfOrder}
|
shelfLocation={shelfOrder}
|
||||||
shelfTitle={shelfTitle}
|
shelfTitle={shelfTitle}
|
||||||
shelfId={spotlightId}
|
shelfId={spotlightId}
|
||||||
|
|||||||
Reference in New Issue
Block a user