if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "47256",
"name": "FX Sport SL 6",
"price": "3499.99",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "bronze_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47263",
"name": "FX Sport SL 5",
"price": "2299.99",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "greendark_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47243",
"name": "FX Sport SL 4",
"price": "1999.99",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "58592",
"name": "FX Sport AL 3",
"price": "1199.99",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "tan",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "57142",
"name": "FX 2 Midstep Gen 4",
"price": "899.99",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "57139",
"name": "FX 2 Stepover Gen 4",
"price": "899.99",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "57134",
"name": "FX 1 Stepover Gen 4",
"price": "699.99",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "white",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "40819",
"name": "FX 3 Gen 4",
"price": "899.93",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "40815",
"name": "FX 2 Gen 4",
"price": "749.93",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "35021",
"name": "FX 3 Disc Gen 3",
"price": "549.93",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "35003",
"name": "FX 2 Disc Gen 3",
"price": "449.93",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}