if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "40819",
"name": "FX 3 Gen 4",
"price": "1229.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40816",
"name": "FX 2 Mid-step Gen 4",
"price": "979.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40815",
"name": "FX 2 Gen 4",
"price": "979.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "47256",
"name": "FX Sport 6",
"price": "3999.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "bronze_black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "47263",
"name": "FX Sport 5",
"price": "2629.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greendark_black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "47243",
"name": "FX Sport 4",
"price": "2249.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35787",
"name": "FX Sport 6",
"price": "3499.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "35786",
"name": "FX Sport 5",
"price": "2629.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "40822",
"name": "FX Sport 4",
"price": "2249.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "35003",
"name": "FX 2 Disc Gen 3",
"price": "799.93",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "32770",
"name": "FX 1 Mid-step Gen 3",
"price": "529.97",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 11
}
,
{
"id": "32769",
"name": "FX 1 Gen 3",
"price": "529.97",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 12
}
,
{
"id": "35785",
"name": "FX Sport 4",
"price": "1499.93",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 13
}
,
{
"id": "35021",
"name": "FX 3 Disc Gen 3",
"price": "949.93",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 14
}
,
{
"id": "35004",
"name": "FX 2 Disc Mid-step Gen 3",
"price": "799.93",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 15
}
,
{
"id": "35002",
"name": "FX 1 Disc Mid-step Gen 3",
"price": "629.97",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 16
}
,
{
"id": "35001",
"name": "FX 1 Disc Gen 3",
"price": "629.97",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 17
}
]
}
});
} else {
console.log("dataLayer");
}