Only follow these steps for product cards that are NOT rendered through the Depict UI (SDK)
We need to tell DPC about the product cards that you created using Depict data. Also, you need to enable Depict to understand what product this product card is in our internal representation.
In the response from all our API:s there’s an id. You need to add this id to your product card template as a data attribute.
The ID is called different things based on different endpoints
|Endpoint you got product data from||Name of ID in ||Attribute name to be used|
This step enables DPC to add click tracking to the product cards as well as tracking when the product card is visible to the user according to certain criteria.
<div data-product-listing-result-id="7ad3110d-7cd6-4352-83da-b93fa1bfe645"> <!-- Product card --> </div>