Name:
interface
Value:
Amplify has re-imagined the way frontend developers build fullstack applications. Develop and deploy without the hassle.

Choose your framework/language

Page updated Apr 16, 2024

Enable and disable analytics

Disable Analytics

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

src/index.js
import { disable } from 'aws-amplify/analytics';
disable();

Enable Analytics

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

src/index.js
import { enable } from 'aws-amplify/analytics';
enable();