if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "45240",
"name": "Trek Supercaliber IsoStrut Damper Body O-Ring",
"price": "1.99",
"brand": "Trek",
"category": "Bike rear suspension",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "29995",
"name": "Trek Supercaliber 29 Strut Service Bushing",
"price": "78.99",
"brand": "Fox",
"category": "Bike rear suspension",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "31685",
"name": "Rock Shox Rear Shock Eyelet Mounting Hardware",
"price": "38.99",
"brand": "RockShox",
"category": "Bike rear suspension",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}