From 291a2cdfff7b29754568b5fd75a61bc701df5015 Mon Sep 17 00:00:00 2001 From: HYUN-SIUU Date: Fri, 6 Feb 2026 14:29:10 +0900 Subject: [PATCH] =?UTF-8?q?GTM=201=EC=B0=A8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(plain)/exercise/class/[id]/page.tsx | 2 +- .../class/[id]/panel/WorkoutVideoPlayer.tsx | 2 +- .../(exercise)/exercise/done/[id]/page.tsx | 2 +- .../(exercise)/panel/ThematicRoutine.tsx | 2 +- .../record/panel/SurveyActionButton.tsx | 7 +++++++ .../record/panel/SurveySection.tsx | 11 ++++++++--- src/app/layout.tsx | 7 +++---- src/components/Carousel.tsx | 4 ++-- src/utils/gtm.ts | 19 ++++++++++++++++--- 9 files changed, 40 insertions(+), 16 deletions(-) diff --git a/src/app/(plain)/exercise/class/[id]/page.tsx b/src/app/(plain)/exercise/class/[id]/page.tsx index 93d36a2..a77f62a 100644 --- a/src/app/(plain)/exercise/class/[id]/page.tsx +++ b/src/app/(plain)/exercise/class/[id]/page.tsx @@ -23,7 +23,7 @@ const Page = () => { else if (!selectedProgram) { router.push("/"); } else if (!startFired.current) { - pushGtmEvent("click_Start", getGtmClassType(type)); + pushGtmEvent("class_Start", getGtmClassType(type)); startFired.current = true; } return () => {}; diff --git a/src/app/(plain)/exercise/class/[id]/panel/WorkoutVideoPlayer.tsx b/src/app/(plain)/exercise/class/[id]/panel/WorkoutVideoPlayer.tsx index 4ecef8e..83b1aab 100644 --- a/src/app/(plain)/exercise/class/[id]/panel/WorkoutVideoPlayer.tsx +++ b/src/app/(plain)/exercise/class/[id]/panel/WorkoutVideoPlayer.tsx @@ -168,7 +168,7 @@ export default function WorkoutVideoPlaylist({ useEffect(() => { const halfDuration = Math.floor(duration * 30); if (!progressFired.current && seconds >= halfDuration && halfDuration > 0) { - pushGtmEvent("click_Progress", getGtmClassType(type)); + pushGtmEvent("class_Progress", getGtmClassType(type)); progressFired.current = true; } }, [seconds, duration, type]); diff --git a/src/app/(with-container)/(exercise)/exercise/done/[id]/page.tsx b/src/app/(with-container)/(exercise)/exercise/done/[id]/page.tsx index dda980a..e75d59b 100644 --- a/src/app/(with-container)/(exercise)/exercise/done/[id]/page.tsx +++ b/src/app/(with-container)/(exercise)/exercise/done/[id]/page.tsx @@ -40,7 +40,7 @@ const Page = () => { useEffect(() => { mutate(); if (selectedProgram && seconds >= selectedProgram.duration * 60) { - pushGtmEvent("click_Finish", getGtmClassType(type)); + pushGtmEvent("class_Finish", getGtmClassType(type)); } }, [mutate, selectedProgram, seconds, type]); diff --git a/src/app/(with-container)/(exercise)/panel/ThematicRoutine.tsx b/src/app/(with-container)/(exercise)/panel/ThematicRoutine.tsx index 39bb152..64a64aa 100644 --- a/src/app/(with-container)/(exercise)/panel/ThematicRoutine.tsx +++ b/src/app/(with-container)/(exercise)/panel/ThematicRoutine.tsx @@ -10,7 +10,7 @@ const ThematicRoutine = ({ authenticated }: { authenticated: boolean }) => { const { isPhone } = useMedia(); return (