posthog▌
93 indexed skills · max 10 per page
logs-python
PostHog/skills · PostHog
### logs-python Overview - PostHog logs for Python - This skill helps you add PostHog log ingestion to Python applications. - `references/python.md` - Python logs installation - docs
integration-fastapi
PostHog/skills · PostHog
### PostHog FastAPI Integration - Initialize the Posthog client within the FastAPI lifespan context manager and ensure proper shutdown to flush all pending events. - Use dependency injection for settings and user identification, ensuring PII is only sent via identify calls, never in capture events. - Follow the provided example project patterns and use environment variables for API keys to maintain secure and consistent tracking.
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.
logs-nodejs
PostHog/skills · PostHog
### PostHog Node.js Log Integration - Configure OpenTelemetry OTLP exporters to send log data directly to the PostHog ingestion endpoint. - Use environment variables for all sensitive configuration, including PostHog keys and OTLP endpoints. - Implement structured logging with key-value properties to enhance searchability and analysis within the PostHog platform.
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.
instrument-integration
PostHog/skills · PostHog
### PostHog SDK Integration - Detect the project framework and language via dependency files to select the appropriate reference guide for SDK installation. - Initialize the SDK using environment variables for API keys and implement user identification during login and signup events. - Follow framework-specific patterns for provider setup and ensure code consistency by matching existing project naming conventions.
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-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.
instrument-feature-flags
PostHog/skills · PostHog
### Instrument PostHog Feature Flags - Detect the project platform and verify PostHog SDK installation, initializing it if necessary using environment variables. - Search for or create feature flags via PostHog MCP tools or the dashboard to define rollout strategies and targeting conditions. - Implement feature flag checks using platform-specific patterns, prioritizing server-side evaluation to prevent UI flickering.
integration-sveltekit
PostHog/skills · PostHog
### PostHog SvelteKit Integration - Follow the four-step setup workflow to integrate PostHog analytics into your SvelteKit application. - Use environment variables for API keys and ensure paths.relative is set to false in svelte.config.js for session replay support. - Identify users during authentication and use custom headers to maintain session correlation between frontend and backend.