From 5646c2501b311936dc30780c4348b7e0e1b0a25a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chyeonggkim=E2=80=9D?= <โ€œhyeonggkim@smilegate.comโ€> Date: Wed, 1 Oct 2025 21:41:47 +0900 Subject: [PATCH] =?UTF-8?q?feat.=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=B6=84?= =?UTF-8?q?=EC=84=9D=20=EB=A1=9C=EA=B7=B8=20=EB=8D=B0=EC=9D=B4=ED=84=B0=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80=20=EB=B0=8F=20=EC=BB=B4?= =?UTF-8?q?=ED=8F=AC=EB=84=8C=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layers/components/widgets/ButtonList.vue | 10 ++++- layers/components/widgets/VideoPlay.vue | 5 ++- layers/composables/useAnalytics.ts | 52 ++++++++++++++++++++---- layers/middleware/pageData.global.ts | 5 +-- layers/templates/GrGallery02/index.vue | 1 + layers/templates/GrGallery03/index.vue | 1 + layers/templates/GrVisual01/index.vue | 27 +++++++----- layers/templates/GrVisual02/index.vue | 1 + layers/templates/GrVisual03/index.vue | 1 + 9 files changed, 78 insertions(+), 25 deletions(-) diff --git a/layers/components/widgets/ButtonList.vue b/layers/components/widgets/ButtonList.vue index f7ac19d..cd2da33 100644 --- a/layers/components/widgets/ButtonList.vue +++ b/layers/components/widgets/ButtonList.vue @@ -7,6 +7,7 @@ import type { ButtonType } from '#layers/types/components/button' interface ButtonListProps { resourcesData: PageDataResourceGroup[] + pageVerTmplSeq: number } const props = defineProps() @@ -51,7 +52,13 @@ const getButtonProps = (button: PageDataResourceGroup) => ({ }), disabled: button.btn_info?.disabled, text: button.btn_info?.txt_btn_name, + tracking: button.tracking, }) + +const { useAnalyticsLogDataDirect } = useAnalytics() +// const logData = useAnalyticsLogDataDirect(props.resourcesData, props.pageVerTmplSeq) +console.log("๐Ÿš€ 11111~ getButtonProps ~ props.resourcesData:", getButtonProps(props.resourcesData[0])) + diff --git a/layers/components/widgets/VideoPlay.vue b/layers/components/widgets/VideoPlay.vue index 3aca1a5..c96ee32 100644 --- a/layers/components/widgets/VideoPlay.vue +++ b/layers/components/widgets/VideoPlay.vue @@ -5,8 +5,8 @@ const props = defineProps<{ resourcesData: PageDataResourceGroup pageVerTmplSeq: number }>() -const { useAnalyticsLogData } = useAnalytics() -const logData = useAnalyticsLogData(props.resourcesData, props.pageVerTmplSeq) +const { useAnalyticsLogDataDirect } = useAnalytics() +const logData = useAnalyticsLogDataDirect(props.resourcesData, props.pageVerTmplSeq) // YouTube ๋ชจ๋‹ฌ ์Šคํ† ์–ด ์‚ฌ์šฉ const modalStore = useModalStore() @@ -20,6 +20,7 @@ const handleVideoPlayClick = () => { diff --git a/layers/templates/GrVisual02/index.vue b/layers/templates/GrVisual02/index.vue index 6c76e19..00b40d0 100644 --- a/layers/templates/GrVisual02/index.vue +++ b/layers/templates/GrVisual02/index.vue @@ -105,6 +105,7 @@ const slideItemSize = { ()