if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "34672",
"name": "E-Caliber 9.8 GX Gen 1",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35765",
"name": "E-Caliber 9.8 GX AXS Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34708",
"name": "E-Caliber 9.9 XTR Gen 1",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35409",
"name": "E-Caliber 9.8 GX AXS Gen 1",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35768",
"name": "E-Caliber 9.8 XT Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35771",
"name": "E-Caliber 9.9 XTR Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "34670",
"name": "E-Caliber 9.8 XT Gen 1",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "35767",
"name": "E-Caliber 9.8 GX Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "34710",
"name": "E-Caliber 9.9 XX1 AXS Gen 1",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "35773",
"name": "E-Caliber 9.9 XX1 AXS Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "CATEGORY",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}