analytics

A guide for adding product analytics and crash reporting to Flutter apps using services such as Firebase, Crashlytics, Sentry, or PostHog. Analytics records app usage, while crash reporting records failures for debugging.

In plain words
What is it for?
Use it to track events, user properties, and screen views; report crashes and errors; switch providers; and plan consent or privacy requirements.
Why use it?
It helps developers choose and connect tracking and error-reporting services instead of designing the integration from scratch.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/launch52-ai/flutter-template/analytics
Any agent
npx skills add launch52-ai/flutter-template --skill analytics
Clone the repo
git clone --depth 1 https://github.com/launch52-ai/flutter-template

Made for: Claude Code, Codex.

Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,379 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00055 $0.01379
Opus 5 $0.00028 $0.00690
Sonnet 5 $0.00011 $0.00276
Haiku 4.5 $0.00006 $0.00138

Measured yesterday against content hash adf14da20229, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

analytics scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/upload_dsyms_crashlytics.sh, scripts/upload_dsyms_sentry.sh, scripts/upload_mapping_android.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/analytics/SKILL.md · 175 lines

How it starts

The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Analytics & Crash Reporting

Track user behavior, monitor app health, and debug production issues. Supports multiple providers with a plug-and-play architecture.

When to Use This Skill

  • Adding analytics to a Flutter app
  • Setting up crash/error reporting
  • Implementing custom event tracking
  • Switching analytics providers
  • User asks "add analytics", "track events", "crash reporting", "Sentry", or "PostHog"

Questions to Ask

  1. Analytics provider: Firebase Analytics (default), PostHog, or Mixpanel?
  2. Error tracking provider: Firebase Crashlytics (default) or Sentry?
  3. Analytics scope: Full analytics (events + properties + screens) or just crash reporting?
  4. Custom events: What key user actions need tracking? (purchases, signups, feature usage)
  5. Privacy: GDPR/CCPA compliance needed? User consent flow required?

Provider Quick Reference

Need Recommended Why
Just get started Firebase Free, easy setup
Better product analytics PostHog Funnels, retention, session replay
Better error tracking Sentry Superior debugging
Data ownership PostHog (self-hosted) Your servers

See: providers-guide.md for detailed comparison.

Reference Files

  • reference/services/ - Provider-agnostic interface + implementations (Firebase, Sentry, PostHog)
  • reference/repositories/ - Domain interface + implementations
  • reference/providers/ - Riverpod state management
  • reference/failures/ - Sealed Failure types
  • reference/utils/ - Route observer, consent helpers

Workflow

Phase 1: Choose Providers

  1. Select analytics provider (Firebase Analytics / PostHog / Mixpanel)
  2. Select error tracking provider (Crashlytics / Sentry)
  3. Add dependencies to pubspec.yaml

Phase 2: Platform Config

Firebase:

  • Add GoogleService-Info.plist (iOS) and google-services.json (Android)
  • Configure dSYM upload for Crashlytics

Sentry:

  • Get DSN from Sentry dashboard
  • Configure sentry-cli for dSYM upload

Read the full file on GitHub · 175 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 175 lines · 55 tokens per session scan A adf14da20229

Subscribe to this mod's changes

analytics is a skill published in the GitHub repository launch52-ai/flutter-template (2 stars, last pushed 6mo ago), licensed MIT. It adds 55 tokens to every session and 1,379 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

merge-seed

Merge upstream React Starter Kit updates (the seed remote) into main, preserving this project's identity, scope, and behavior. Use when asked to sync, pull, or merge the seed / starter kit / upstream template.

kriasoft/react-starter-kit · 49 tokens

django-celery-expert

Expert Django Celery guidance for asynchronous task processing. Use when designing background tasks, configuring Celery workers, handling task retries and errors, optimizing Celery performance, implementing periodic tasks with Celery Beat, or setting up production monitoring for Celery. Do not use for general Django…

wilfredinni/django-starter-template · 115 tokens

django-expert

Expert Django backend development guidance. Use when creating Django models, views, serializers, or APIs; debugging ORM queries or migrations; optimizing database performance; implementing authentication; writing tests; or working with Django REST Framework. Follows Django best practices and modern patterns.

wilfredinni/django-starter-template · 55 tokens

shadcn

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json…

kriasoft/react-starter-kit · 94 tokens

setup

Interactive project setup from the ai-project-template — replaces the static SETUPGUIDE.md with a guided, multi-step workflow.

TheSmuks/ai-project-template · 26 tokens

template-guide

Navigate template conventions, audit compliance, and guide upgrades for ai-project-template repos.

TheSmuks/ai-project-template · 18 tokens