Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: set capture pageview to false

Dillion Verma4139f831927d
diff --git a/components/posthog-provider.tsx b/components/posthog-provider.tsx
index 79ef106f..6abf8f5a 100644
--- a/components/posthog-provider.tsx
+++ b/components/posthog-provider.tsx
@@ -1,13 +1,14 @@
"use client";
-import { useEffect } from "react";
import { usePathname, useSearchParams } from "next/navigation";
import posthog from "posthog-js";
import { PostHogProvider } from "posthog-js/react";
+import { useEffect } from "react";
if (typeof window !== "undefined") {
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_API_KEY!, {
api_host: "https://app.posthog.com",
+ capture_pageview: false,
session_recording: {
maskAllInputs: false,
},