Skip to content

Commit

Permalink
Merge pull request #62 from Nexters/feat/gtm
Browse files Browse the repository at this point in the history
fix: fix btn click event
  • Loading branch information
eric-jy-park authored Apr 20, 2024
2 parents e5e0077 + bac8c9b commit 2df4451
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/(landing)/_components/floating-footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use client";

import { Button } from "@/components/common/button/button";
import { event } from "@/utils/gtag";
import { sendGAEvent } from "@next/third-parties/google";
import { useRouter } from "next/navigation";
import React from "react";
Expand All @@ -10,6 +11,12 @@ const FloatingFooter = React.memo(() => {

const onButtonClick = React.useCallback(() => {
router.push("/ticker");
event({
action: "buttonClicked",
category: "landing page",
label: "",
value: "",
});
sendGAEvent({
event: "buttonClicked",
value: "Landing Page",
Expand Down

0 comments on commit 2df4451

Please sign in to comment.