AWS Amplify supports analytics through the Amplify Analytics category, which allows developers to collect analytics data using Amazon Pinpoint or Amazon Kinesis. It can be used to track user sessions, custom events, and in-app behavior.
Example code to record an event:
import { Analytics } from 'aws-amplify';
Analytics.record({
name: 'userSignIn',
attributes: {
username: 'testUser',
}
});