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 (