| name | game-analytics |
| description | Game analytics tracks player behavior and game performance. This guide Use when this capability is needed. |
| metadata | {"author":"amnadtaowsoam"} |
Game Analytics
Skill Profile
(Select at least one profile to enable specific modules)
Overview
Game analytics tracks player behavior and game performance. This guide covers metrics, event tracking, funnel analysis, and analytics platforms for understanding player engagement, optimizing gameplay, and improving retention.
Why This Matters
Game analytics is critical for gaming platforms as it directly impacts:
- Game Balance: Data-driven difficulty adjustments
- Monetization: Optimize in-app purchases
- Retention: Identify and address churn points
- User Experience: Remove friction points
Core Concepts
- DAU/MAU/WAU: Daily/Monthly/Weekly Active Users
- Retention: Day 1, 7, 30 retention rates
- Funnel Analysis: Conversion through game stages
- Cohort Analysis: Track groups by install date
- A/B Testing: Compare feature variants
- Player Segmentation: Group players by behavior
- LTV: Lifetime Value calculation
- Real-time Dashboard: Live metrics visualization
Inputs / Outputs / Contracts
Skill Composition
- Depends on: None
- Compatible with: None
- Conflicts with: None
- Related Skills: None
Quick Start / Implementation Example
- Review requirements and constraints
- Set up development environment
- Implement core functionality following patterns
- Write tests for critical paths
- Run tests and fix issues
- Document any deviations or decisions
def example_function():
pass
Assumptions
- Player IDs are unique and persistent
- Event tracking doesn't impact gameplay performance
- Analytics platform integration available
- Database supports efficient aggregation queries
Compatibility
| Platform | Event Tracking | Funnels | Cohorts |
|---|
| Unity Analytics | Yes | Limited | Yes |
| GameAnalytics | Yes | Yes | Yes |
| Mixpanel | Yes | Yes | Limited |
| Amplitude | Yes | Yes | Yes |
| Custom | Yes | Yes | Yes |
Test Scenario Matrix (QA Strategy)
| Type | Focus Area | Required Scenarios / Mocks |
|---|
| Unit | Core Logic | Must cover primary logic and at least 3 edge/error cases. Target minimum 80% coverage |
| Integration | DB / API | All external API calls or database connections must be mocked during unit tests |
| E2E | User Journey | Critical user flows to test |
| Performance | Latency / Load | Benchmark requirements |
| Security | Vuln / Auth | SAST/DAST or dependency audit |
| Frontend | UX / A11y | Accessibility checklist (WCAG), Performance Budget (Lighthouse score) |
Technical Guardrails & Security Threat Model
1. Security & Privacy (Threat Model)
- Top Threats: Injection attacks, authentication bypass, data exposure
2. Performance & Resources
3. Architecture & Scalability
4. Observability & Reliability
Agent Directives
- Always track key events without impacting performance
- Anonymize user data for privacy compliance
- Use sampling for high-volume events
- Define clear funnels for conversion tracking
- Set up cohorts for retention analysis
- Monitor real-time metrics for operational issues
- Act on insights from analytics data
Definition of Done (DoD) Checklist
Anti-patterns / Pitfalls
- ⛔ Don't: Log PII, catch-all exception, N+1 queries
- ⚠️ Watch out for: Common symptoms and quick fixes
- 💡 Instead: Use proper error handling, pagination, and logging
Reference Links & Examples
- Internal documentation and examples
- Official documentation and best practices
- Community resources and discussions
Versioning & Changelog
- Version: 1.0.0
- Changelog:
- 2026-02-22: Initial version with complete template structure
Converted and distributed by TomeVault — claim your Tome and manage your conversions.