User adds a product to their card from within 8.SET Compose content
Let's assume you are showing content from 8.SET Compose that was loaded via 8.API. Whenever a user adds a product from within that content to their cart you should send the respective interact
event.
Suppose, 8.API returned a payload like this:
The event you send would look like that:
The type of the event is interact
. The corresponding interact
property is intended to specify the action and target of the event. In our case, this would be addToCart
and product
. Again, to describe the target more specifically, we include the sku
of the product interacted with β as returned in the API response β in a product
property.
Lastly, the context
must contain an object with type user
as described in the context section, as well as the setCompose
context specifying the containing product set returned by the API as described in the context section.
Last updated