if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "16810",
"name": "Loft 7D Step-Thru",
"price": "699.99",
"brand": "Electra",
"category": "Loft",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "16717",
"name": "Loft 7D Step-Over",
"price": "399.99",
"brand": "Electra",
"category": "Loft",
"variant": "brown_green",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}