feat: Implemented hero A/B test, added Contact Sales button and fixed PH toolbar compatibility

This commit is contained in:
Eric Lammertsma 2026-01-27 13:23:45 -05:00
parent b3f08a7aa7
commit 8e556d8b80
4 changed files with 61 additions and 16 deletions

View file

@ -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;
}