The value object

Every event you send to Discover must include a value object. The contents of this object depend on the type of event being sent as well as the type of widget the event originates from.

The following table lists supported attributes for the value object:

NameTypeDescriptionValue
contextcontext objectRequired when sending user's fitment, geo, or browser information.Information about context.n/a
productsarray of product objectsRequired for product events such as widget
, view
, order
, and so on.Array of objects containing product information. Can be an array containing a single product.
n/a
useruser objectRequired for any event that accesses user information, such as user
, user
, and so on.Basic user information.
n/a
checkoutcheckout objectRequired for order
events.Checkout information.
n/a
f (deprecated)stringOptional. Can be used in widget events.Type of widget.rw: recommendation widgetsp: search results widgetsb: preview search widgetcb: content block widget such as a banner or HTML block
rfkidstringRequired.ID of the widget configured in CEC.ImportantThis must match the corresponding rfkid set up in the CEC. If the rfkid is not provided or the wrong rfkid is sent, then no attribution numbers for that widget are reported.n/a
indexintegerRequired if product or facet link.Position in an array of objects. Objects can be products, keyphrase suggestions, suggested categories, and so on.Indexing starts at 0.n/a
urlstringRequired for widget events.URL of the page in which widget is placed.n/a
dn (deprecated)stringOptional.Domain.n/a
locale (deprecated)locale objectOptional.Locale information.ImportantThis locale object is deprecated. We recommend you use the page object for locale information.n/a
wstringRequired for preview search widget events.Area of widget where click happened.TipUse the type field for further information about the type of suggestion or facet.suggestionfacet
typestringRequired for preview search widget events.Type of suggestion link or facet type the user clicks on.Example facet types: size, color, rating, price, and so on.Link types
textstringOptional.Link or facet text that was clicked.n/a
kwstringRequired for search widgets.Keyword user typed before clicking a link.n/a
mstringRequired if backend returns a modified keyword.Modified keyword returned as part of response.n/a
click_typestringRequired for clicks on HTML content or embedded action buttons.The type of link or button that is associated with a click event.n/a
click_sub_typestringOptional.Additional sub-type of the link or button that the user clicked.n/a
click_textstringRequired for clicks on HTML content or embedded action buttons.Label value of the link or button associated with the above click type.Example values are "Add to Cart", "Show", "Quick View", and so on.n/a
click_text_idstringOptional.Normalized text ID of a label value associated with the link or button that the user clicked.n/a
click_uristringRequired if the clicked link has a URI associated with it.URI associated with a clickn/a
If you have suggestions for improving this article, let us know!