analytics▌
99 indexed skills · max 10 per page
omnibus-instrument-product-analytics
PostHog/skills · PostHog
### PostHog Product Analytics Integration - Detects the project framework and installs the appropriate PostHog SDK while maintaining existing code structures. - Implements targeted event tracking for key user actions, conversion funnels, and server-side operations using environment variables. - Configures user identification during authentication flows and adds exception tracking to monitor critical application errors.
integration-expo
PostHog/skills · PostHog
### PostHog Expo Integration - Use expo-constants to securely manage PostHog project tokens and host URLs via app.config.js instead of hardcoding values. - Install posthog-react-native and the required react-native-svg peer dependency to enable analytics and survey features. - Wrap the application with PostHogProvider and implement manual screen tracking within your router or navigation layout files.
omnibus-instrument-logs
PostHog/skills · PostHog
### omnibus-instrument-logs Overview - >- - Use this skill to add PostHog log capture for new or changed code. Use it after implementing features or reviewing PRs to ensure meaningful - Supported platforms: Next.js, Node.js, Python, Go, Java, Datadog, and any language via OpenTelemetry.
integration-react-react-router-7-framework
PostHog/skills · PostHog
### PostHog Integration for React Router v7 - Follow the four-step setup workflow to integrate PostHog analytics into React Router v7 Framework mode applications. - Use environment variables for API keys and implement analytics capture directly within event handlers rather than useEffect hooks. - Identify users during authentication and maintain session correlation by passing distinct IDs via headers for cross-boundary tracking.
integration-vue-3
PostHog/skills · PostHog
### PostHog Vue 3 Integration - Follow the four-step setup workflow to initialize PostHog analytics within your Vue 3 application. - Use environment variables for API keys and maintain consistency by following the provided example project patterns. - Identify users during authentication events and use specific headers to correlate client-side sessions with backend data.
integration-django
PostHog/skills · PostHog
### PostHog Django Integration - Install the posthog package and initialize the client in AppConfig.ready() using environment variables for API keys and host settings. - Add PosthogContextMiddleware to your Django middleware and use the instance-based Posthog() constructor with exception autocapture. - Use set() or identify_context() for user identification, ensuring PII is excluded from capture() event properties to maintain privacy.
integration-swift
PostHog/skills · PostHog
### PostHog Swift Integration - Configure PostHog using environment variables for project tokens and hosts, ensuring they are set within the Xcode scheme settings. - Add SPM dependencies by creating unique PBXBuildFile, XCSwiftPackageProductDependency, and XCRemoteSwiftPackageReference objects. - Enable outgoing network connections in macOS App Sandbox settings and use headers to maintain user correlation across client sessions.
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-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.