if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "31207",
"name": "Electra Townie Go! 7D 26" Wheel",
"price": "1089.99",
"brand": "Electra",
"category": "Bike wheels",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "27388",
"name": "Electra Cruiser Lux 7D 26" Wheel",
"price": "197.99",
"brand": "Electra",
"category": "Bike wheels",
"variant": "greylight",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}