if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "37082",
"name": "Trek Evoke Mountain Bike Tech Tee",
"price": "29.99",
"brand": "Trek",
"category": "Mountain bike jerseys",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "56815",
"name": "Santini Trek Factory Racing Men’s Team Replica Cycling Jersey",
"price": "179.99",
"brand": "Santini",
"category": "Mountain bike jerseys",
"variant": "bluedark",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}