Flutter product analytics installation
Add the PostHog Flutter SDK to your Add these values to your Update the minimum Android SDK version to 21 in Add these values to your Update the minimum platform version to iOS 13.0 in your Add these values in Once installed, PostHog will automatically start capturing events. You can also manually send events to test your integration: By default, for backwards compatibility reasons, events are sent with person profile processing enabled. This means a person profile will be created for each user who triggers an event. If you want to disable person profile processing for certain events, send the event with the following property: Check if a feature flag is enabled: For multivariate flags, check which variant the user has been assigned: Experiments run on top of our feature flags. Once you've implemented the flag in your code, you run an experiment by creating a new experiment in the PostHog dashboard.Install the package
Requiredpubspec.yaml:Android setup
RequiredAndroidManifest.xml:android/app/build.gradle:iOS/macOS setup
RequiredInfo.plist:Podfile:Web setup
index.html:Send events
RecommendedEvaluate boolean feature flags
RequiredEvaluate multivariate feature flags
OptionalRunning experiments
Optional