Why aren't my Amazon Cognito user pool analytics appearing on my Amazon Pinpoint dashboard?
My Amazon Cognito user pool analytics aren't publishing to my Amazon Pinpoint project dashboard. Why aren't my user pool analytics appearing in Amazon Pinpoint after I specify Amazon Pinpoint analytics settings in the Amazon Cognito console?
"My Amazon Cognito user pool analytics aren't publishing to my Amazon Pinpoint project dashboard. Why aren't my user pool analytics appearing in Amazon Pinpoint after I specify Amazon Pinpoint analytics settings in the Amazon Cognito console?Short descriptionVerify that your application is passing an AnalyticsMetadata parameter in its requests to the InitiateAuth API operation. Without this parameter, Amazon Cognito can't pass user pool analytics from your application to Amazon Pinpoint.To have your application pass an AnalyticsMetadata parameter in its requests to the InitiateAuth API operation, use AWS SDKs.ResolutionImportant: The AnalyticsMetadata parameter value must be unique for each endpoint. Each unique value corresponds to a single data point in your Amazon Pinpoint dashboard.For instructions for each language-specific AWS SDK, see the See also section of the InitiateAuth page in the Amazon Cognito API Reference.AWS SDK for JavaScript code examplevar cognitoidentityserviceprovider = new AWS.CognitoIdentityServiceProvider();var params = {  AuthFlow: "USER_PASSWORD_AUTH",  ClientId: 'STRING_VALUE', /* the client ID attached to the Pinpoint project */  AuthParameters: {    'USERNAME': 'STRING_VALUE',    'PASSWORD': 'STRING_VALUE'  },  AnalyticsMetadata: {    AnalyticsEndpointId: 'STRING_VALUE' /* random UUID unique for each Cognito user */  },};cognitoidentityserviceprovider.initiateAuth(params, function(err, data) {  if (err) console.log(err, err.stack); // an error occurred  else     console.log(data);           // successful response});Follow"