FLUTTER ECOSYSTEM

analytics_gen

Type-safe analytics event tracking with code generation from YAML configuration. Supports multiple providers, testing utilities, and export formats.

Latest version
2.1.0
30-day downloads
283
Likes
11
Pub points
150

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

analytics_gen is a Flutter package that enables type-safe analytics event tracking through code generation from YAML configuration. It supports multiple analytics providers, offers built-in testing utilities, and allows exporting event definitions to various formats. By defining events in a centralized YAML file, developers ensure consistency and reduce runtime errors. The generated code enforces correct event structure and parameters, improving maintainability and developer experience across platforms.

Use cases
  • Tracking user interactions in apps
  • Centralizing analytics event definitions
  • Generating testable analytics code
  • Supporting multiple analytics backends
  • Enabling cross-platform analytics
  • Simplifying onboarding for new team members
Key features
  • Code generation from YAML
  • Type-safe event tracking
  • Multi-provider support
  • Built-in testing utilities
  • Export to multiple formats
  • Cross-platform compatibility
Suitable for
  • Teams using structured analytics
  • Projects requiring consistent event naming
  • Developers prioritizing type safety
  • Apps with multiple analytics providers
  • Teams focused on maintainable code
  • CI/CD pipelines with automated validation
Considerations
  • Requires YAML configuration setup
  • Initial learning curve for YAML schema
  • Limited to generated event types
  • May require updates when adding new events
  • Dependent on code generation step
  • Not suitable for dynamic event creation
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add analytics_gen

Categories

Related projects

No data available yet.