Enable and disable analytics
Disable Analytics
Analytics is enabled by default when you configure it in your app. To disable Analytics in your app use the disable
function:
1import { disable } from 'aws-amplify/analytics';2
3disable();
Enable Analytics
To enable analytics you can use the enable
function in your app:
1import { enable } from 'aws-amplify/analytics';2
3enable();