mobile-analytics
Use when the user asks about mobile app analytics, event tracking, Firebase Analytics, Mixpanel, Amplitude, screen tracking, user properties or ATT/consent…
от j4flmao★ 47 звёзд на GitHub
Установить mobile-analytics в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Mobile Analytics
Purpose
Guide for implementing mobile app analytics: event tracking, screen views, user properties, and privacy compliance.
Agent Protocol
Trigger
Phrases: "analytics", "event tracking", "Firebase Analytics", "Mixpanel", "Amplitude", "app analytics", "event logging", "user properties", "screen tracking", "funnel analytics", "user behavior", "telemetry"
Input Context
- Analytics provider (Firebase, Mixpanel, Amplitude, or custom)
- Event taxonomy and naming conventions
- Privacy requirements (GDPR, CCPA, ATT)
- Existing navigation system for automatic screen tracking
Output Artifact
Analytics module: provider initialization, event tracking service, screen view auto-tracker, user properties manager, consent management, privacy controls.
Response Format
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.
Completion Criteria
- Events fire with correct schema and reach analytics dashboard
- Screen views tracked automatically via navigation listener
- User properties set on login/update
- GDPR consent flow blocks non-essential events
- ATT prompt appears on iOS 14.5+
- User deletion API removes all stored analytics data
Max Response Length
6000 tokens
Architecture
Analytics Service Layer Pattern
AnalyticsService (Facade)
├── Consent checking before forwarding
├── Property enrichment (device, session, version)
├── Rate limiting and batching
├── Multi-provider routing
│
├── Provider A (Firebase)
├── Provider B (Mixpanel)
└── File/Log Fallback
Decision Tree: Provider Selection
What is your budget?
├── $0/month → Firebase Analytics
│ Sufficient for: event tracking, basic funnels, 500 user properties
│ Not sufficient for: behavioral cohorts, advanced retention, A/B testing
├── $500-2000/month MTU → Mixpanel or Amplitude
│ Choose Mixpanel: better for product-led growth, viral loops
│ Choose Amplitude: better for behavioral analytics, predictive models
└── Enterprise → Custom server + warehouse
Full data control, custom dashboards, no per-event cost
Decision Tree: SDK Initialization Strategy
Init timing?
├── Before app root renders → Firebase, Mixpanel, Amplitude (they start collecting immediately)
│ Must: wrap in try/catch, never crash on init failure
├── After first frame → Non-critical analytics (custom server, niche providers)
│ Screen view events from first frame won't be captured
└── Lazy init on first user action → Privacy-first approach
Show consent dialog first, init only after consent
Decision Tree: Identity Strategy
User lifecycle?
├── Anonymous first, then sign up → Identity stitching
│ On signup: alias anonymous ID to user ID
├── Login required to use app → User ID immediately
│ Set user ID on auth success, reset on logout
└── No auth → Device ID
Use advertising ID (ATT on iOS) or vendor ID
Workflow
Analytics SDK selection — Three categories of analytics providers. Free tier: Firebase Analytics (Google) — unlimited events (up to 500 distinct event names), 25 custom user properties, basic segmentation (by device, country, version), funnels in Google Analytics 4, no cost. Good for most apps. Paid tiers: Mixpanel and Amplitude — advanced user profiling, behavioral cohorts, retention analysis, A/B testing, revenue tracking, funnel analysis with time-to-convert, custom dashboards, data warehouses export. Pricing based on MTU (monthly tracked users). Custom server: full data control, no third-party dependency, implement your own event ingestion, storage, dashboard, GDPR compliance certainty, higher engineering cost. Recommendation: start with Firebase Analytics (free + sufficient), migrate to Mixpanel/Amplitude when advanced segmentation needed.
Event naming taxonomy — Consistent naming convention is critical for usable analytics. Event names:
snake_case, max 40 characters. Pattern:{domain}_{action}_{object}or{screen}_{action}. Examples:profile_edit_name,cart_add_item,settings_toggle_notifications,checkout_payment_complete. Reserved prefixes:screen_,error_,funnel_,perf_. Event properties: up to 25 per event, typed (string, number, boolean), keys alsosnake_case, max 40 chars per key, max 100 chars per string value. Never pass PII in properties. Use enum or constant class for event names and property keys to avoid typos and ensure discoverability. Version event schemas in a tracking plan document shared across team.Automatic screen tracking — Hook into navigation system to dispatch
screen_viewevents automatically. iOS: swizzle orUINavigationControllerDelegateto catch push/pop transitions. Android:NavController.OnDestinationChangedListenerfor Jetpack Navigation, orFragmentManager.FragmentLifecycleCallbacks. Cross-platform: React Navigation state listener, Flutter Navigator observer. Screen view event should include: `scree
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/analytics-advanced.md
- references/analytics-debugging.md
- references/analytics-fundamentals.md
- references/analytics-privacy.md
- references/analytics-reporting.md
- references/analytics-sdks.md
- references/analytics-setup.md
- references/event-tracking.md
- references/mobile-analytics-event-tracking.md
- references/mobile-analytics-privacy-compliance.md
- references/mobile-analytics.md
FAQ
Что делает скилл mobile-analytics?
Use when the user asks about mobile app analytics, event tracking, Firebase Analytics, Mixpanel, Amplitude, screen tracking, user properties or ATT/consent for tracking. Produces an event taxonomy, SDK wrapper and privacy-compliant setup. Not for product funnel strategy (use product-analytics) or crash tracking (use mobile-crash-reporting).
Как установить скилл mobile-analytics?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mobile-analytics запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…