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