User clicks on a product within 8.SET content
Last updated
Last updated
Let's assume you are showing content from 8.SET that was loaded via 8.API. Whenever a user clicks on a product within that content you should send the respective interact
event.
Suppose you requested content for product with SKU 457297-0001-00340
the API would return this:
The user clicks on the first product of the third cluster.
The event you send would look like that:
The type of the event is interact
. The corresponding interact
property is intended to specify the target and action of the event. In our case, this would be a click
on a product
. Again, to describe the target more specifically, we include the id
of the product interacted with β as returned in the API response.
Lastly, the context
must contain an object with type user
, as well as the content
context specifying the type of content and the id as described in the context section.