Analytics Tracking Elite
Comprehensive skill designed for user, wants, improve, audit. Includes structured workflows, validation checks, and reusable patterns for business marketing.
Analytics Tracking Elite
Expert-level analytics implementation for web and mobile applications — covering event taxonomy design, cross-platform tracking, attribution modeling, and conversion optimization through data-driven measurement.
When to Use
Implement analytics tracking when:
- Launching a new product or feature that needs measurement
- Current tracking is incomplete or inconsistent
- Need to understand user behavior across the full funnel
- Building attribution models for marketing spend optimization
Use simpler analytics when:
- Personal project or MVP → just Google Analytics basic setup
- Static content site → page views and bounce rate suffice
- Privacy regulations prohibit detailed tracking → use server-side analytics
Quick Start
Event Taxonomy Design
// Define a consistent event naming convention const EVENT_TAXONOMY = { // Format: category_action_label // Examples: "page_view": { category: "navigation", required_params: ["page_path"] }, "button_click": { category: "engagement", required_params: ["button_id", "page"] }, "form_submit": { category: "conversion", required_params: ["form_name", "success"] }, "signup_complete": { category: "conversion", required_params: ["method", "plan"] }, "purchase_complete": { category: "revenue", required_params: ["value", "currency", "items"] }, "feature_use": { category: "product", required_params: ["feature_name", "context"] }, "error_occur": { category: "system", required_params: ["error_type", "page"] }, };
Event Tracking Implementation
class AnalyticsTracker { constructor(providers = ['ga4', 'mixpanel']) { this.providers = providers; this.queue = []; } track(eventName, properties = {}) { const event = { name: eventName, properties: { ...properties, timestamp: new Date().toISOString(), session_id: this.getSessionId(), user_id: this.getUserId(), page_url: window.location.href, } }; // Send to all providers if (this.providers.includes('ga4')) { gtag('event', eventName, event.properties); } if (this.providers.includes('mixpanel')) { mixpanel.track(eventName, event.properties); } } // Conversion funnel tracking trackFunnel(funnelName, step, properties = {}) { this.track(`funnel_${funnelName}_step_${step}`, { funnel_name: funnelName, funnel_step: step, ...properties }); } } // Usage const analytics = new AnalyticsTracker(['ga4', 'mixpanel']); analytics.track('signup_complete', { method: 'google', plan: 'free' }); analytics.trackFunnel('onboarding', 1, { action: 'profile_created' });
Core Concepts
Tracking Plan Template
| Event | Category | Properties | Trigger |
|---|---|---|---|
page_view | Navigation | page_path, referrer | Page load |
signup_start | Conversion | method | Click signup button |
signup_complete | Conversion | method, plan | Registration success |
feature_use | Product | feature_name, duration | Feature interaction |
purchase_start | Revenue | cart_value, items | Begin checkout |
purchase_complete | Revenue | value, currency | Payment success |
error_occur | System | error_type, message | Error thrown |
Attribution Models
| Model | Logic | Best For |
|---|---|---|
| Last Click | Credit to final touchpoint | Simple attribution |
| First Click | Credit to first touchpoint | Awareness campaigns |
| Linear | Equal credit to all touches | Understanding full journey |
| Time Decay | More credit to recent touches | Long sales cycles |
| Data-Driven | ML-based attribution | High-volume, multi-channel |
Conversion Funnel Analysis
Awareness (10,000 visitors)
→ Interest (3,000 signups, 30%)
→ Consideration (1,000 active users, 33%)
→ Intent (300 trial starts, 30%)
→ Purchase (90 conversions, 30%)
Overall: 0.9% conversion
Focus area: Interest → Consideration (67% drop-off)
Configuration
| Parameter | Description |
|---|---|
providers | Analytics platforms to send events to |
event_taxonomy | Standardized event naming schema |
user_properties | Properties set per user (plan, role) |
session_timeout | Inactivity before new session (30 min) |
sampling_rate | Event sampling for high-volume sites |
pii_filter | Fields to strip before sending |
debug_mode | Log events to console |
Best Practices
- Design your tracking plan before implementing — document every event, property, and trigger
- Use consistent naming conventions —
category_action_labelacross all events - Track the full funnel — from first visit through retention, not just conversion
- Validate tracking in staging — use debug mode to verify events fire correctly
- Respect privacy — strip PII, honor Do Not Track, comply with GDPR/CCPA
- Review tracking quarterly — remove stale events, add new ones for new features
Common Issues
Missing events in analytics dashboard: Check ad blockers (10-15% of users). Verify event names match tracking plan. Use server-side tracking for critical conversions.
Data discrepancy between platforms: Different platforms count sessions and users differently. Standardize on one source of truth for each metric. Document known discrepancies.
Too many events causing noise: Focus on 15-20 core events. Use properties to add detail rather than creating new events. Archive events that aren't being used for decisions.
Reviews
No reviews yet. Be the first to review this template!
Similar Templates
Full-Stack Code Reviewer
Comprehensive code review skill that checks for security vulnerabilities, performance issues, accessibility, and best practices across frontend and backend code.
Test Suite Generator
Generates comprehensive test suites with unit tests, integration tests, and edge cases. Supports Jest, Vitest, Pytest, and Go testing.
Pro Architecture Workspace
Battle-tested skill for architectural, decision, making, framework. Includes structured workflows, validation checks, and reusable patterns for development.