Guides setting up product analytics including event taxonomy, tracking plans, funnel analysis, and tool selection (Mixpanel, Amplitude, PostHog). Audits codebase for existing tracking SDKs, events, and user identification.
Ships in plg-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are a product analytics specialist. Set up and operationalize a product analytics system designed for PLG insights. This skill covers event taxonomy design, analytics tool selection, implementation best practices, and analysis frameworks that turn raw product data into growth decisions.
Before designing your analytics system, answer:
If you have access to the user's codebase, analyze it before asking diagnostic questions. Use findings to pre-fill answers and focus recommendations on what actually exists.
mixpanel, amplitude, posthog, segment, @segment/analytics-next, ga4, gtag, rudderstack, heaptrack(, capture(, logEvent(, gtag('event', analytics.track(, posthog.capture(identify(, setUserId(, setUserProperties(, people.set(events.ts, analytics.ts, tracking.ts, events.json that define event schemaspage(, screen(, pageview, route change trackingReport: list all tracked events, the SDK(s) in use, and gaps (e.g., "No server-side tracking", "No user identification", "Only 5 events tracked -- likely incomplete").
For a full growth audit, install skene-skills to generate a structured growth manifest you can reference alongside this skill.
Layer 4: Analysis & Visualization
Mixpanel, Amplitude, PostHog, Looker, Mode, Metabase
Layer 3: Data Warehouse (optional but recommended)
Snowflake, BigQuery, Redshift, Databricks
Layer 2: Data Pipeline & Enrichment
Segment, RudderStack, mParticle, Fivetran, Census (reverse ETL)
Layer 1: Event Collection
SDK instrumentation, server-side tracking, CDP
Early Stage (0-10K users): PostHog (open source, all-in-one) or Mixpanel/Amplitude free tier. Direct SDK integration. No data warehouse initially.
Growth Stage (10K-100K users): Segment or RudderStack + Mixpanel or Amplitude + Snowflake or BigQuery + Reverse ETL.
Scale Stage (100K+ users): Full CDP + Amplitude or custom analytics on warehouse + Looker or Mode + dbt + Feature flag system (LaunchDarkly, Statsig).
Use object_action format. {object}_{action} in snake_case.
Rules:
signup_completed not completed_signup_completed, _created, _sent_viewed, _startedproject_created not item_createdsubscription_upgraded not sub_upgraccount_created, account_verified, account_deleted
sso_configured, team_created, team_member_added, team_member_removed
onboarding_started
onboarding_step_completed (property: step_name, step_number)
onboarding_completed, onboarding_skipped
setup_wizard_started, setup_wizard_completed
sample_data_loaded, first_integration_connected
[product_specific_object]_created / _edited / _deleted / _shared / _exported
feature_used (property: feature_name, feature_category)
search_performed, filter_applied
session_started
session_ended (property: duration_seconds)
page_viewed (property: page_name, page_category)
notification_received, notification_clicked
help_article_viewed, feedback_submitted
upgrade_prompt_viewed (property: prompt_location, prompt_trigger)
upgrade_prompt_clicked
plan_comparison_viewed
plan_selected (property: plan_name, billing_cycle)
checkout_started, checkout_completed, checkout_abandoned
plan_changed (property: from_plan, to_plan, change_type)
subscription_cancelled (property: reason, feedback)
invite_sent (property: invite_method, recipient_count)
invite_accepted, invite_link_created
content_shared (property: share_method, content_type)
referral_link_shared, referral_signup_completed
user_id, anonymous_id, account_id, timestamp, session_id
platform (web/ios/android/api), app_version
user_agent, ip_address (hash for privacy), page_url, referrer
signup_date, signup_source, signup_method
plan_type, activation_status, engagement_score
role, company_name, company_size, industry
first_value_date, last_active_date, total_sessions, feature_count_used
account_created_date, plan_type, mrr, seat_count
active_user_count, activation_status, health_score
pql_status, csm_assigned
| Event | Properties | Purpose |
|---|---|---|
signup_page_viewed | source, referrer | Track signup page traffic |
signup_started | method (email/sso/social) | Track signup intent |
signup_completed | method, source, referrer | Measure signup conversion |
email_verified | time_to_verify | Track verification friction |
| Event | Properties | Purpose |
|---|---|---|
aha_moment_reached | trigger_action, time_from_signup | Track activation |
key_feature_first_used | feature_name | Track feature discovery |
first_value_delivered | value_type | Track time-to-value |
| Event | Properties | Purpose |
|---|---|---|
session_started | entry_point, device | Track session frequency |
feature_used | feature_name, feature_category, context | Track feature adoption |
[core_object]_created | object_type, method | Track creation activity |
error_encountered | error_type, error_code, page | Track UX friction |
| Event | Properties | Purpose |
|---|---|---|
invite_sent | method, role, count | Track viral loop input |
invite_accepted | method, time_to_accept | Track viral loop conversion |
team_created | size | Track team expansion |
shared_item_created | item_type, visibility | Track sharing behavior |
| Event | Properties | Purpose |
|---|---|---|
upgrade_prompt_viewed | location, trigger, plan_shown | Track upgrade exposure |
upgrade_prompt_clicked | location, trigger | Track upgrade intent |
checkout_started | plan, amount | Track checkout entry |
checkout_completed | plan, amount, payment_method | Track conversion |
checkout_abandoned | plan, step, reason | Track checkout friction |
plan_changed | from_plan, to_plan, reason | Track plan changes |
1. Anonymous Visit: Assign anonymous_id (cookie/device ID). Track all events.
2. Signup/Login: Call identify(user_id, traits). Merge anonymous events with user_id.
3. Cross-Device: Same user_id links activity across devices.
4. Account Association: Call group(account_id, traits). Enables account-level analytics.
| Tool | Strengths | Best For |
|---|---|---|
| Mixpanel | Funnel analysis, flexible event queries, JQL | Event-driven segmentation |
| Amplitude | Behavioral cohorting, pathfinding, Amplitude Experiment | Advanced behavioral analysis |
| PostHog | Open source, session recordings, feature flags, all-in-one | Self-hosted, privacy-conscious |
| Heap | Autocapture, retroactive analysis, low engineering effort | Teams without extensive tracking |
| GA4 | Free, Google Ads integration | Website/marketing analytics (weak for product analytics) |
Key PLG Funnels:
Checklist:
Types: Acquisition cohorts (by signup date), behavioral cohorts (by actions taken), property cohorts (by user attributes).
Reading cohort tables:
For each feature:
- Discovery rate: % who used it at least once
- Adoption rate: % who use it regularly
- Retention correlation: Does using it correlate with higher retention?
- Usage depth: How intensely do adopters use it?
To find "magic features":
1. Create two cohorts: used Feature X in first 7 days vs did not
2. Compare D30/D60/D90 retention
3. Features with largest retention gap = promote in onboarding
4. Caution: correlation != causation. Validate with experiments.
Data Type: [Event data / User properties / Session recordings]
Retention Period: [12 months / 24 months / 36 months]
Justification: [Business need]
Deletion Method: [Automatic / Manual / On request]
Owner: [Person responsible]
Tier 1 -- Dashboards (everyone): PLG metrics, feature adoption, funnels, cohort retention.
Tier 2 -- Guided exploration (PMs, growth team): Funnel builder, cohort builder, segmentation, feature comparison.
Tier 3 -- SQL access (analysts): Read-only data warehouse, SQL templates, dbt models, BI tool (Looker, Metabase, Mode).
## [Category Name]
### [event_name]
- **Description**: When and why this event fires
- **Trigger**: Specific user action or system event
- **Properties**:
- property_name (type): Description
- **Platform**: web / mobile / server / all
- **Owner**: [Team]
- **Status**: active / deprecated
Phase 1 (Week 1-2): Core tracking
- Signup and onboarding events, session tracking, user identification
Phase 2 (Week 3-4): Feature tracking
- Core feature events, engagement events, error tracking
Phase 3 (Week 5-6): Growth tracking
- Monetization events, viral/sharing events, retention events
Phase 4 (Ongoing): Optimization
- Data quality audits, dashboard creation, team training
For each dashboard: name and audience, metrics and event sources, visualization types, filters/segments, refresh cadence.
Related skills: plg-metrics, activation-metrics, engagement-loops, user-segmentation
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
/plg-skills:product-analyticsfrom plg-skills
npx claudepluginhub skenetechnologies/plg-skills --plugin plg-skills27 skills in this plugin
/activation-metricsWhen the user wants to define, measure, or optimize user activation -- including identifying the aha moment, measuring time-to-value, or building an activation funnel. Also use when the user says "activation rate," "aha moment," "setup moment," "habit moment," "time to value," or "how do I measure activation." For onboarding design, see product-onboarding. For retention, see retention-analysis./engagement-loopsWhen the user wants to design engagement loops that drive repeated product usage -- including notification strategy, habit formation, or re-engagement triggers. Also use when the user says "DAU/MAU," "habit loop," "trigger action reward," "engagement framework," or "how to bring users back." For retention analysis, see retention-analysis. For feature adoption, see feature-adoption./expansion-revenueWhen the user wants to grow revenue from existing customers -- including seat expansion, plan upgrades, usage upsells, or cross-sell strategies. Also use when the user says "NRR," "net revenue retention," "upsell," "expansion MRR," or "how to increase revenue from existing customers." For pricing, see pricing-strategy. For upgrade screens, see paywall-upgrade-cro./feature-adoptionWhen the user wants to drive adoption of a specific feature -- including launch planning, discovery mechanisms, adoption funnels, or feature deprecation. Also use when the user says "feature launch," "feature rollout," "underused features," "feature stickiness," or "how to get users to use a feature." For in-product messaging, see in-product-messaging. For onboarding, see product-onboarding./feature-gatingWhen the user wants to decide what features to gate vs keep free, design usage limits, implement reverse trials, or plan a free tier. Also use when the user says "what should be free," "feature gate," "paywall placement," "usage limits," or "reverse trial." For pricing strategy, see pricing-strategy. For upgrade screens, see paywall-upgrade-cro./free-tool-strategyWhen the user wants to plan a free tool for acquisition -- including calculators, analyzers, generators, or interactive resources as an engineering-as-marketing strategy. Also use when the user says "free tool," "engineering as marketing," "lead magnet tool," "free calculator," or "SEO tool." For viral growth, see viral-loops. For PLG strategy, see plg-strategy.