Why aren't my Amazon Cognito user pool analytics appearing on my Amazon Pinpoint dashboard?

2 minute read

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 description

Verify 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.


Important: 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 example

var cognitoidentityserviceprovider = new AWS.CognitoIdentityServiceProvider();
var params = {
  ClientId: 'STRING_VALUE', /* the client ID attached to the Pinpoint project */
  AuthParameters: {
  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

AWS OFFICIALUpdated 2 years ago