mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-20 23:21:06 +02:00
feat: Implemented hero A/B test, added Contact Sales button and fixed PH toolbar compatibility
This commit is contained in:
parent
b3f08a7aa7
commit
8e556d8b80
4 changed files with 61 additions and 16 deletions
|
|
@ -12,5 +12,17 @@ if (process.env.NEXT_PUBLIC_POSTHOG_KEY) {
|
|||
capture_pageview: "history_change",
|
||||
// Enable session recording
|
||||
capture_pageleave: true,
|
||||
loaded: (posthog) => {
|
||||
// Expose PostHog to window for console access and toolbar
|
||||
if (typeof window !== "undefined") {
|
||||
window.posthog = posthog;
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// Always expose posthog to window for debugging/toolbar access
|
||||
// This allows testing feature flags even without POSTHOG_KEY configured
|
||||
if (typeof window !== "undefined") {
|
||||
window.posthog = posthog;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue