if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "28791",
"name": "Bontrager XXX WaveCel Trek-Segafredo Decals",
"price": "46.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black_white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "09577",
"name": "Bontrager Public Safety Services Helmet Stickers",
"price": "19.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}