analytics▌
99 indexed skills · max 10 per page
logs-nextjs
PostHog/skills · PostHog
### PostHog Logging for Next.js - Integrate PostHog log ingestion into Next.js applications using the OpenTelemetry protocol and OTLP exporters. - Utilize environment variables for all PostHog keys and endpoints to ensure security and avoid hardcoding sensitive data. - Implement structured logging with key-value properties and initialize via instrumentation.ts for optimal framework compatibility.
integration-astro-static
PostHog/skills · PostHog
### PostHog Integration for Static Astro - Initialize PostHog by creating a reusable posthog.astro component and importing it into your site's main layout. - Use the is:inline directive on script tags and prefix client-side environment variables with PUBLIC_ to ensure proper functionality. - Identify users during authentication events and maintain session correlation by passing distinct IDs via custom request headers.
feature-flags-dotnet
PostHog/skills · PostHog
### feature-flags-dotnet Overview - PostHog feature flags for .NET applications - This skill helps you add PostHog feature flags to .NET applications. - `references/dotnet.md` - .net feature flags installation - docs
integration-flask
PostHog/skills · PostHog
### PostHog Flask Integration - Initialize the Posthog client globally in create_app() using the instance-based constructor with enable_exception_autocapture=True. - Use posthog_client.set() to manage person properties and ensure atexit.register() is used to flush events before application shutdown. - Protect user privacy by never including PII in capture() event properties; use identify() patterns for user-specific data instead.
logs-datadog
PostHog/skills · PostHog
### PostHog Log Integration for Datadog - Configure OTLP exporters to send logs to PostHog's ingest endpoint using the OpenTelemetry protocol. - Use environment variables for all PostHog keys and endpoints to ensure security and avoid hardcoding sensitive credentials. - Implement structured logging with key-value properties instead of plain text to improve searchability and data analysis.
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.
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-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.
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.
error-tracking-web
PostHog/skills · PostHog
### PostHog Web Error Tracking - Initialize posthog-js before other methods and enable exception autocapture to monitor browser errors automatically. - Upload source maps to ensure stack traces are readable and use captureException() within catch blocks for manual error reporting. - Protect user privacy by excluding PII from capture() event properties, using identify() for user-specific data instead.