adding-analytics

Integrate PostHog analytics into web applications for event tracking and feature flags.

2|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/kscius/KS-Cursor-Orchestrator --skill adding-analytics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adding-analytics
Source: https://github.com/kscius/KS-Cursor-Orchestrator/tree/main/skills/adding-analytics
Command: npx skills add https://github.com/kscius/KS-Cursor-Orchestrator --skill adding-analytics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Add PostHog analytics to a web application, including event tracking, page views, feature flags, and session replay.

Core Features & Use Cases

  • Instrumentation for events, page views, and session replay across modern frameworks.
  • Feature flag management and conditional analytics behavior to enable experiments.
  • Use case: quickly instrument a React or Next.js app to monitor user interactions and product engagement.

Quick Start

Install and configure PostHog integration in your web app using environment variables for the key and host.

Frequently Asked Questions about adding-analytics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add PostHog analytics to a Next.js or React app?

PostHog supports both client-side and server-side integration for web applications. You can configure provider initialization and environment variables to track events and feature flags across Next.js, React, Vue, Svelte, and plain HTML/JS projects.

Does PostHog session replay and event tracking work with Vue and Svelte?

PostHog session replay and event tracking work with Vue and Svelte projects. The integration requires framework detection to apply the correct SDK installation steps for your specific environment and provider initialization setup.

What is the best way to set up feature flags with PostHog?

No external dependencies are required to start tracking page views and events with PostHog. You only need to install the PostHog SDK into your web app and configure your environment variables for the API key and host.

Can I use PostHog for both client-side and server-side tracking?

PostHog supports both client-side and server-side integration for web applications. You can configure provider initialization and environment variables to track events and feature flags across Next.js, React, Vue, Svelte, and plain HTML/JS projects.