Amplify JS API Documentation
    Preparing search index...
    • Parameters

      Returns void

    • Records an Analytic event to Pinpoint. Events will be buffered and periodically sent to Pinpoint.

      Parameters

      • input: PinpointAnalyticsEvent

      Returns void

      AWS will end support for Amazon Pinpoint on October 30, 2026.

      validation: AnalyticsValidationErrorCode - Thrown when the provided parameters or library configuration is incorrect.

      // Send an event to Pinpoint
      record({ name: eventName })
      // Send an event to Pinpoint with metrics & custom attributes
      record({
      name: eventName,
      attributes: {
      'my-attribute': attributeValue
      },
      metrics: {
      'my-metric': metricValue
      }
      })