diff --git a/src/pages/pricing.tsx b/src/pages/pricing.tsx index 607e5ae..c7089ff 100644 --- a/src/pages/pricing.tsx +++ b/src/pages/pricing.tsx @@ -8,9 +8,17 @@ import { Disclosure, Transition } from "@headlessui/react"; import { ChevronUpIcon } from "@heroicons/react/20/solid"; import CTA from "~/components/CTA"; import VideoRecordModal from "~/components/VideoRecordModal"; +import { usePostHog } from "posthog-js/react"; export default function Pricing() { const [billedAnnually, setBilledAnnually] = useState(true); + const posthog = usePostHog(); + + const toggleBillingCycle = () => { + setBilledAnnually(!billedAnnually); + + posthog?.capture("change billing cycle"); + }; return ( <> @@ -30,7 +38,7 @@ export default function Pricing() {
setBilledAnnually(!billedAnnually)} + onClick={toggleBillingCycle} >