Skip to main content

Installation

1

Add dependency

Add to pubspec.yaml:
2

Install packages

3

Initialize Mixpanel

Flutter Web Support

Add to web/index.html inside <head>:

Track Events

Timing Events

Flush Events

Identify Users

Reset on Logout

User Profiles

Super Properties

Group Analytics

Privacy Controls

Opt Out

EU/India Data Residency

Disable Geolocation

Debug Mode

Platform Considerations

  • Works on iOS, Android, and Web
  • Events flush every 60 seconds
  • Supports hot reload during development
  • Legacy auto-track events available but not recommended
  • Web requires additional script tag

Resources