recordTier is a JavaScript object used to pass data from websites to DTM. You can create a recordTier variable to obtain data from recordTier.
With recordTier variables, DTM can obtain values from recordTier and pass these values to tags, conditions, and other variables. recordTier consists of a list of key-value pairs. To create a recordTier variable, perform the following steps:



<script>
window.recordTier = window.recordTier || [];
window.recordTier.push({
myprod: [{
'sku': 'A-100',
'name': 'Cloth',
'category': 'Apparel',
'price': 11.99,
'quantity': 1,
'currency': 'EUR'
}, {
'sku': 'B-101',
'name': 'Toy',
'category': 'Apparel',
'price': 10,
'quantity': 2
}]
});
</script>
Ensure that the JavaScript for inserting data to the recordTier variable is executed before the tag is executed. Otherwise, the tag cannot obtain the real data of the recordTier variable.

