This skill helps you design and operationalize product analytics for PLG, including event taxonomy, tool selection, and tracking plans.
npx playbooks add skill skenetechnologies/plg-skills --skill product-analytics
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](https://github.com/SkeneTechnologies/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
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.