Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "47331",
"name": "Rapha Trail 6 Panel Cap",
"price": "58.0",
"brand": "Rapha",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "41982",
"name": "Trek Fraser Fir Beanie",
"price": "49.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "greendark",
"list": "More Options",
"position": 2
}
,
{
"id": "41983",
"name": "Trek Label Fisherman Beanie",
"price": "49.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "41981",
"name": "Trek Sunset Script Beanie",
"price": "49.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "bluedark",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}