Page updated Nov 9, 2023

Enable and disable analytics

Amplify Flutter v0 is now in Maintenance Mode until July 19th, 2024. This means that we will continue to include updates to ensure compatibility with backend services and security. No new features will be introduced in v0.

Please use the latest version (v1) of Amplify Flutter to get started.

If you are currently using v0, follow these instructions to upgrade to v1.

Disable Analytics

Analytics is enabled by default when you configure it in your app. To disable Analytics in your app use the disable function:

await Amplify.Analytics.disable();
1await Amplify.Analytics.disable();

Enable Analytics

To enable analytics you can use the enable function in your app:

await Amplify.Analytics.enable();
1await Amplify.Analytics.enable();