Sign in

Welcome to our Support Center

Get help with integration and live campaigns

Welcome to our Support Center. Get help with integration and live campaigns

Warning - Hardcoded Product ID

Overview

This warning message appears when you hardcode the product ID from the example in the guide. 

This is incorrect:

{ event: "viewItem", item: "product_id" }

This is incorrect:

{ event: "viewList", item:[ "product_id_1" , "product_id_2" , "product_id_3" ]}

Remember – the Product ID passed on the Criteo OneTag must be exactly match the one used in your product data feed.

We need the Product ID to track viewItem, viewListviewBasket and trackTransaction events. Find info on events found here.

Solution

Make sure the Product ID dynamically implemented in the Criteo OneTag for the listing, product, basket and confirmation pages matches exactly the Product ID used in your product data feed.

This is correct:
If a user is on a product page and the Product ID  for the product displayed on that particular page is A123, the viewItem event in the Criteo OneTag should look like this:

{ event: "viewItem", item: "A123" }

This is correct:

If the user is on a listing page and the first three Product IDs for the products listed on the page are B456C789D101, the viewList event in the Criteo OneTag should look like this:

{ event: "viewList", item: ["B456", "C789", "D101"] }

If you implement Criteo OneTag via Google Tag Manager, please make sure your variables are correctly defined and the Google Tag Manager dataLayer contains the data used in those variables.

 

 

 

 

 

Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk