if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "40506",
"name": "FX 2 Equipped",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40507",
"name": "FX 2 Equipped Mid-step",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40504",
"name": "FX 3 Equipped",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40505",
"name": "FX 3 Equipped Mid-step",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35108",
"name": "FX 3 Disc Equipped Stagger",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35018",
"name": "FX 2 Disc Equipped",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "28899",
"name": "FX 3 Equipped Stagger",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "35107",
"name": "FX 3 Disc Equipped",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red_reddark",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}