Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Event metrics and attribution reports

Focus mode
Event metrics and attribution reports - Amazon Personalize

To monitor the type and number of events sent to Amazon Personalize, use Amazon CloudWatch metrics. For more information, see Monitoring Amazon Personalize with Amazon CloudWatch.

To generate CloudWatch reports that show the impact of recommendations, create a metric attribution and record user interactions with real-time recommendations. For information on creating a metric attribution, see Measuring the impact of Amazon Personalize recommendations.

For each event, include recommendation ID of the recommendations you showed the user. Or include the event source, such as a third party. Import this data to compare different campaigns, recommenders, and third parties. You can import at most 100 event attribution sources.

  • If you provide a recommendationId, Amazon Personalize automatically determines the source campaign or recommender and identifies it in reports in an EVENT_ATTRIBUTION_SOURCE column.

  • If you provide both attributes, Amazon Personalize uses only the eventAttributionSource.

  • If you don't provide a source, Amazon Personalize labels the source SOURCE_NAME_UNDEFINED in reports.

The following code shows how to provide an eventAttributionSource for an event in a PutEvents operation.

response = personalize_events.put_events( trackingId = 'eventTrackerId', userId= 'userId', sessionId = 'sessionId123', eventList = [{ 'eventId': 'event1', 'eventType': 'watch', 'sentAt': '1667260945', 'itemId': '123', 'metricAttribution': { 'eventAttributionSource': 'thirdPartyServiceXYZ' } }] ) statusCode = response['ResponseMetadata']['HTTPStatusCode'] print(statusCode)

The following code shows how to provide a recommendationId for an event in a PutEvents operation.

response = personalize_events.put_events( trackingId = 'eventTrackerId', userId= 'userId', sessionId = 'sessionId123', eventList = [{ 'eventId': 'event1', 'eventType': 'watch', 'sentAt': '1667260945', 'itemId': '123', 'recommendationId': 'RID-12345678-1234-1234-1234-abcdefghijkl' }] ) statusCode = response['ResponseMetadata']['HTTPStatusCode'] print(statusCode)
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.