Troubleshooting: Product ID
Error: The Problem: The Criteo Tag - View Item tag requires a single ID to identify which specific product the user is looking at. This ID must match exactly what is in your product catalog (Feed). The variable Criteo - Product ID is currently pointing to the wrong place or is empty.
Method 1: The Copycat Technique
Prerequisite: You have other tags (like Google Analytics 4, Meta, or Google Ads) already working on the Product Page.
If another tag is already tracking the product view, it is already pulling the correct ID. Let's just use that.
Open Tag Assistant and go to any Product Page on your site.
Find a working tag: in the timeline, click on an event where a tag fired successfully (e.g., "GA4 View Item" or "Meta ViewContent").
Inspect the variables: click on the tag details. Tip: switch the view from Names to Values.
Find the ID: look for the field that contains the product ID (e.g.,
SKU_12345or12345).Example: you might see
content_ids: ["SKU_12345"]oritem_id: {{dlv - ecommerce.items.0.item_id}}.
How to fix it: copy the variable name used there (e.g.,
ecommerce.items.0.item_id) and paste it into yourCriteo - Product IDvariable in GTM.a. Make sure “DataLayer Variable is there.”
Method 2: The Data Layer Hunt method
Use this if you don't have other tags configured.
Analysis (Find the ID):
Open Tag Assistant and navigate to a Product Page.
Select the Event: click on the relevant event in the timeline (e.g.,
view_itemorcustom_product_detail).Click the "Data Layer" Tab.
The hunt: look for the unique ID of the product.
Example: In the screenshot, we see
sku_id: "TSHIRT-001-RED-M"inside theinventory_itemslist.Other Common Names:
sku,productId,id,item_id.
How to fix it: you need to construct the path to that ID.
Case A: the ID is at the top level
What you see:
product_id: "123"Path:
product_id
Case B: the ID is inside a list (Most Common)
If the ID is inside a list (like
itemsorinventory_items), you must tell GTM to pick the first item (which is number0in code language).Structure:
ListName->0->IDNameExample: For the screenshot
inventory_items: [ { sku_id: ... } ], the path isinventory_items.0.sku_id.
Update the Variable:
Go to GTM > Variables >
Criteo - Product ID.In the Data Layer Variable Name field, paste the path you found (e.g.,
inventory_items.0.sku_id).Save.
