Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: g tag added to product hunt embded #90

Merged
merged 1 commit into from
Dec 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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" },
Expand Down Expand Up @@ -111,6 +114,7 @@ export default function Home() {
<a
href="https://www.producthunt.com/posts/theme-ai?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-theme&#0045;ai"
target="_blank"
onClickCapture={() => gTrigger("ProductHunt", "Click")}
>
<img
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=431314&theme=light"
Expand Down
Loading