From c223ec4d31d5ef1ad245ffc083f255625701e615 Mon Sep 17 00:00:00 2001 From: Ashish Baravaliya Date: Tue, 26 Dec 2023 21:55:15 -0500 Subject: [PATCH] feat: g tag added to product hunt embded --- src/pages/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index ce5f67f..3d7f71c 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,4 +1,5 @@ import GlowingBoxes from "@/components/growing-dots"; +import useAnalytics from "@/hooks/useAnalytics"; import moment from "moment"; import dynamic from "next/dynamic"; import Head from "next/head"; @@ -9,6 +10,8 @@ const Countdown = dynamic(() => import("react-countdown"), { }); export default function Home() { + const gTrigger = useAnalytics("Home - coming soon"); + const renderer = ({ days, hours, minutes, seconds, completed }: any) => { const data = [ { val: days, label: "Days" }, @@ -111,6 +114,7 @@ export default function Home() { gTrigger("ProductHunt", "Click")} >