if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "36235",
"name": "Electra Townie Go! 7D & Cruiser Go! Light Kit",
"price": "199.99",
"brand": "Electra",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "28142",
"name": "Electra Pixeo XD Dynamo Mudguard Mount 2800 mm Rear Bike Light",
"price": "52.99",
"brand": "Electra",
"category": "Bike lights",
"variant": "red_black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}