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 29, 2024

Enable and disable analytics

AWS will end support for Amazon Pinpoint on October 30, 2026,, and is no longer accepting any new users as of May 20 (see the linked doc). The guidance is to use AWS End User Messagingfor push notifications and SMS, Amazon Simple Email Servicefor sending emails, Amazon Connectfor campaigns, journeys, endpoints, and engagement analytics. Pinpoint recommends Amazon Kinesisfor event collection and mobile 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:

import { disable } from 'aws-amplify/analytics';
disable();

Enable Analytics

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

import { enable } from 'aws-amplify/analytics';
enable();