if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "33768",
"name": "Electra Reflective Charcoal Phone Bag",
"price": "89.99",
"brand": "Electra",
"category": "Phone & tablet accessories",
"variant": "reflective",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47334",
"name": "Rapha Rainproof Essentials Case",
"price": "70.0",
"brand": "Rapha",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}