Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat: add landing variant

Marc Seitz24534ac16c04
diff --git a/components/providers/posthog-provider.tsx b/components/providers/posthog-provider.tsx
index 61c0a9bb..1ac10dac 100644
--- a/components/providers/posthog-provider.tsx
+++ b/components/providers/posthog-provider.tsx
@@ -4,6 +4,7 @@ import posthog from "posthog-js";
// import { useRouter } from "next/router";
import { PostHogProvider } from "posthog-js/react";
+import { registerLandingVariant } from "@/lib/landing-ab-client";
import { getPostHogConfig } from "@/lib/posthog";
import { CustomUser } from "@/lib/types";
@@ -39,6 +40,7 @@ export const PostHogCustomProvider = ({
} else {
posthog.reset();
}
+ registerLandingVariant(posthog);
})
.catch(() => {
// Do nothing.