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 Quantity

Overview

You’ll see this warning message if you don’t implement the Criteo OneTag Quantity parameter dynamically. It’s likely that the value of the quantity is being hard coded on the Criteo OneTag exactly as it appears in the Integrate Platform.

 

Example

{ event: "viewBasket", item:    [{id: "A123", price: 29.95, quantity: "quantity_1" }]}

The quantity parameter is required for both the viewBasket and trackTransaction events. Find more information on events here.

 

Solution

Make sure the quantity has been dynamically implemented on the Criteo OneTag for basket and confirmation pages.

This is correct:
If a user is on a basket page and the user has 4 units of item A123 in their cart, the viewBasket event in the Criteo OneTag should look like this:

 

{ event: "viewBasket", item:

    [{id: "A123", price: 29.95, quantity: 4 }]

}

 

If you implement the 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