if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "13534",
"name": "Electra Linear Cup Holder",
"price": "39.99",
"brand": "Electra",
"category": "Bike water bottles & cages",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "12624",
"name": "Electra Water Bottle Cage Adapter",
"price": "22.99",
"brand": "Electra",
"category": "Bike water bottles & cages",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}