if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "35222",
"name": "Top Fuel 9.8 XT",
"price": "",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "reddark_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35324",
"name": "Top Fuel 9.8 GX",
"price": "",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "reddark_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37070",
"name": "Top Fuel 9.9 XX1 AXS",
"price": "",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37062",
"name": "Top Fuel 9.8 GX AXS",
"price": "",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}