if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "12722",
"name": "Electra Cruiser Vintage 26" Diamond Tyre",
"price": "78.99",
"brand": "Electra",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "12716",
"name": "Electra Cruiser Fatti-O 24" Tyre",
"price": "76.99",
"brand": "Electra",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "12721",
"name": "Electra Strat-O-Balloon 26" Cruiser Tyre",
"price": "49.99",
"brand": "Electra",
"category": "Bike tires",
"variant": "black_white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "12719",
"name": "Electra Knobby Cruiser Tyres",
"price": "49.99",
"brand": "Electra",
"category": "Bike tires",
"variant": "black_white",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "21678",
"name": "Electra Lux Fat 26" Tyre",
"price": "179.99",
"brand": "Electra",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}