Skip to main content
The product id used in setProductId and addToCart events must be the same id that our API returns in the displays as product_id — see Which ID goes where. For examples of valid product ids, see the bottom table on the “Tracking status” tab on app.depict.ai.
Every time after navigating to a page representing a product on your website, you need to send a setProductId event to register which product id is currently viewed. This includes client-side route changes in single-page apps: DPC detects the navigation and invalidates the previous product id, but it never infers the new one — send setProductId again on every PDP view.