if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "40815",
"name": "FX 2 Gen 4",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40816",
"name": "FX 2 Mid-step Gen 4",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40506",
"name": "FX 2 Equipped",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40507",
"name": "FX 2 Equipped Mid-step",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40504",
"name": "FX 3 Equipped",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "40819",
"name": "FX 3 Gen 4",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "40505",
"name": "FX 3 Equipped Mid-step",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "40813",
"name": "FX 1 Gen 4",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "47243",
"name": "FX Sport 4",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "47256",
"name": "FX Sport 6",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "bronze_black",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "47263",
"name": "FX Sport 5",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greendark_black",
"list": "CATEGORY",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}