These steps apply to product cards you render yourself. Cards rendered by a
legacy Depict UI SDK already carry these attributes.
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 inside each display. 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
This step enables DPC to track clicks on the product cards — including clicks on add-to-cart buttons inside them. Cards added later (for example after client-side navigation or infinite scroll) are picked up automatically.
Examples:
Category page:
Recommendations:
