Skip to content

Put Events

personalizeevents_put_events R Documentation

Records item interaction event data

Description

Records item interaction event data. For more information see Recording item interaction events.

Usage

personalizeevents_put_events(trackingId, userId, sessionId, eventList)

Arguments

trackingId

[required] The tracking ID for the event. The ID is generated by a call to the CreateEventTracker API.

userId

The user associated with the event.

sessionId

[required] The session ID associated with the user's visit. Your application generates the sessionId when a user first visits your website or uses your application. Amazon Personalize uses the sessionId to associate events with the user before they log in. For more information, see Recording item interaction events.

eventList

[required] A list of event data from the session.

Value

An empty list.

Request syntax

svc$put_events(
  trackingId = "string",
  userId = "string",
  sessionId = "string",
  eventList = list(
    list(
      eventId = "string",
      eventType = "string",
      eventValue = 123.0,
      itemId = "string",
      properties = "string",
      sentAt = as.POSIXct(
        "2015-01-01"
      ),
      recommendationId = "string",
      impression = list(
        "string"
      ),
      metricAttribution = list(
        eventAttributionSource = "string"
      )
    )
  )
)