What is a Analytics Application? in Aws
By default, AWS Amplify can collect user session tracking data with a few lines of code:
import Analytics from '@aws-amplify/analytics';
Analytics.record('myCustomEvent');
See https://aws.github.io/aws-amplify/media/analytics_guide