alinaqi avatar

Posthog Analytics

Solid setup for PostHog integration with opinionated patterns for event tracking and feature flags. Covers Next.js, React, Python, and Node with actual code for user identification, pageview tracking, and the provider setup you need. The event naming convention (object_action, snake_case, past tense) is prescriptive in a good way, and the breakdown of core events by category (auth, onboarding, feature usage) gives you a template instead of making you figure it out from scratch. Emphasizes tracking what informs decisions rather than everything, which is the right philosophy but harder to follow than it sounds.

skills.sh installs
736
GitHub stars
702
last updated
Jul 14, 2026

Install

$ npx -y skills add alinaqi/claude-bootstrap --skill posthog-analytics --agent claude-code

Installs into .claude/skills of the current project.

Files

PostHog Analytics Skill

For implementing product analytics with PostHog - event tracking, user identification, feature flags, and project-specific dashboards.

Sources: PostHog Docs | Product Analytics | Feature Flags


Philosophy

Measure what matters, not everything.

Analytics should answer specific questions:

  • Are users getting value? (activation, retention)
  • Where do users struggle? (funnels, drop-offs)
  • What features drive engagement? (feature usage)
  • Is the product growing? (acquisition, referrals)

Don't track everything. Track what informs decisions.


Installation

Next.js (App Router)

npm install posthog-js
// lib/posthog.ts
import posthog from 'posthog-js';

Sponsors

Details

Repository
github.com/alinaqi/claude-bootstrap
Categories
Data Science & ML, Marketing & SEO
First seen
May 16, 2026

More from alinaqi/claude-bootstrap

All 54
1alirezarezvani avataranalytics-trackingalirezarezvani/claude-skillsSet up, audit, and debug analytics tracking implementation — GA4, Google Tag Manager, event taxonomy, conversion tracking, and data quality. Use when building a731skills.sh installs
2davila7 avatarcontext7-auto-researchdavila7/claude-code-templatesAutomatically fetch latest library/framework documentation for Claude Code via Context7 API724skills.sh installs
3drshailesh88 avatarsocial-media-trends-researchdrshailesh88/integrated_content_osProgrammatic social media and marketing research using free tools: pytrends (Google Trends), yars (Reddit without API keys), and Perplexity MCP (Twitter/TikTok/720skills.sh installs
4weizhena avatarresearch-add-fieldsweizhena/deep-research-skillsAdd field definitions to existing research outline.708skills.sh installs
5sanjay3290 avatardeep-researchsanjay3290/ai-skillsExecute autonomous multi-step research using Google Gemini Deep Research Agent. Use for: market analysis, competitive landscaping, literature reviews, technical706skills.sh installs
6weizhena avatarresearch-add-itemsweizhena/deep-research-skillsAdd items (research objects) to existing research outline.706skills.sh installs