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

      Returns void

    • Record one analytic event and send it to Personalize. Events will be buffered and periodically sent to Amazon Personalize.

      For more examples, you can refer to the API usage guidance.

      Parameters

      • input: PersonalizeEvent

        The input object used to construct the request.

      Returns void

      void

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

      // Record an `Identify` event to Personalize.
      record({
      eventType: "Identify",
      properties: {
      userId: "<USER_ID>"
      }
      });