Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

385 B
Raw Blame
"use client";

import { useSession } from "next-auth/react";
import { usePlausible } from "next-plausible";
import { useEffect } from "react";

export default function TrackSignup() {
  const plausible = usePlausible();
  const { data: session } = useSession();

  useEffect(() => {
    if (session?.user) {
      plausible("Signed Up");
    }
  }, [session?.user]);

  return null;
}