Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "45368",
"name": "Trek Mosaic Unisex T-Shirt",
"price": "39.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "white",
"list": "More Options",
"position": 1
}
,
{
"id": "47325",
"name": "Rapha Cotton Tee",
"price": "83.0",
"brand": "Rapha",
"category": "T-Shirts",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "40638",
"name": "Trek Fade Women's T-Shirt",
"price": "39.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "tealdark",
"list": "More Options",
"position": 3
}
,
{
"id": "41976",
"name": "Trek Bicycle Tonal Unisex T-Shirt",
"price": "29.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "greendark",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}