analytics▌
99 indexed skills · max 10 per page
integration-laravel
PostHog/skills · PostHog
### PostHog Laravel Integration - Centralize analytics logic by creating a dedicated PostHogService class instead of scattering capture calls across controllers. - Configure settings in config/posthog.php using environment variables and initialize the SDK once using PostHog::init(). - Identify users during authentication and maintain session correlation by passing distinct IDs via custom request headers.
integration-nextjs-pages-router
PostHog/skills · PostHog
### PostHog Integration for Next.js Pages Router - Initialize PostHog using environment variables and follow the provided example project patterns for consistent implementation. - Capture analytics events directly within user-triggered event handlers rather than using useEffect hooks for state-driven logic. - Identify users during login and signup, using specific headers to maintain correlation between frontend and backend sessions.
feature-flags-rust
PostHog/skills · PostHog
### PostHog Feature Flags in Rust - Integrate PostHog flags into Rust applications using environment variables for secure API key management. - Implement server-side flag evaluation to ensure consistent user experiences and prevent UI flickering. - Utilize available PostHog MCP tools to programmatically manage, list, and update feature flags directly from your development environment.
feature-flags-web
PostHog/skills · PostHog
### PostHog Web Feature Flags - Integrate PostHog flags into JavaScript apps using environment variables for keys and avoiding hardcoded credentials. - Implement boolean flag checks alongside existing logic to minimize code restructuring and maintain clean application flow. - Prioritize server-side flag evaluation to prevent UI flickering and utilize MCP tools for direct flag management within PostHog.
integration-javascript_web
PostHog/skills · PostHog
### PostHog JavaScript Web Integration - Initialize posthog-js in client-side browser environments only, ensuring posthog.init() is called before any other SDK methods. - Use posthog.identify() for PII like emails and names, while keeping posthog.capture() event properties free of sensitive user data. - Follow the four-step integration workflow and use environment variables for keys to maintain security and implementation consistency.
feature-flags-api
PostHog/skills · PostHog
### feature-flags-api Overview - PostHog feature flags for API applications - This skill helps you add PostHog feature flags to API applications. - `references/api.md` - API feature flags installation - docs
feature-flags-react-native
PostHog/skills · PostHog
### PostHog Feature Flags for React Native - Use useFeatureFlagEnabled or useFeatureFlagPayload hooks to manage flags while handling loading states and external synchronization. - Securely load POSTHOG_PROJECT_TOKEN and POSTHOG_HOST via environment variables using react-native-config to avoid hardcoding credentials. - Install react-native-svg as a peer dependency and wrap your application with PostHogProvider inside the NavigationContainer.
feature-flags-java
PostHog/skills · PostHog
### PostHog Java Feature Flags - Install the PostHog Java library and integrate flag checks directly into existing application logic using the provided documentation. - Securely manage PostHog API keys using environment variables and prioritize server-side evaluation to prevent UI flickering. - Utilize available PostHog MCP tools to programmatically create, list, and update feature flags directly from your development environment.
integration-astro-view-transitions
PostHog/skills · PostHog
### PostHog Astro View Transitions Integration - Use the is:inline directive and a reusable PostHog component to initialize analytics within Astro layouts. - Configure capture_pageview to history_change and use the astro:page-load event to ensure tracking persists during soft navigation. - Securely manage project tokens via PUBLIC_ environment variables and maintain user correlation using custom request headers.
error-tracking-svelte
PostHog/skills · PostHog
### PostHog Error Tracking for Svelte - Initialize PostHog with exception autocapture enabled and use environment variables for all sensitive configuration keys. - Upload source maps to ensure stack traces resolve to original source code rather than minified production bundles. - Set paths.relative to false in svelte.config.js to ensure session replay compatibility with SvelteKit server-side rendering.