if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "35003",
"name": "FX 2 Disc Gen 3",
"price": "799.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35002",
"name": "FX 1 Disc Mid-step Gen 3",
"price": "599.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47243",
"name": "FX Sport 4",
"price": "2599.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35785",
"name": "FX Sport 4",
"price": "2499.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35021",
"name": "FX 3 Disc Gen 3",
"price": "1499.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red_reddark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35001",
"name": "FX 1 Disc Gen 3",
"price": "599.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}