Troubleshooting: Criteo purchase items (Advanced Configuration)
STEP 1: Analysis
We need to know what your website calls the "ID", "Price", and "Quantity" inside a product.
Open Tag Assistant and go to a page with products (e.g., Cart or Category).
Open the Data Layer tab and find your product list (the one you found in the previous section).
Inspect ONE product: open the list (click the arrow
►) and look at the first item (usually index0).

Write down the Keys:
What is the ID called? (e.g.,
sku_id,item_id,id)What is the Price called? (e.g.,
value,price,unit_price)What is the Quantity called? (e.g.,
qty,quantity,count)
STEP 2: map the code (the fix)
Now we replace the "1s" with your actual data keys.
Go to GTM > Variables and open
Criteo - Purchase - Items.Look at the code. You will see lines like
id: 1,,price: 1,, etc..how to fix it: replace the
1withproduct.YOUR_KEY.
Example Scenario:
If Tag Assistant says:
sku_id: "SKU_123",cost: 29.99,qty_added: 2.You must change the code to:
// ... inside the function ...
return {
// LEFT (Fixed) : RIGHT (Your Edits)
id: product.sku_id, // Replaced '1' with 'product.sku_id'
price: product.cost, // Replaced '1' with 'product.cost'
quantity: product.qty_added // Replaced '1' with 'product.qty_added'
};STEP 3: Verify & Publish
Preview: click Preview in GTM again. Make a test purchase (or go to the confirmation page).
Check the Tag: click on the Criteo Tag - Purchase.
Check the Values: ensure the
itemsfield now shows real IDs and Prices, not "1".Submit: if it looks good, click the blue Submit button in the top right to publish your changes.
