if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "41986",
"name": "Rail 9.9 X0 AXS T-Type Gen 4",
"price": "14799.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41666",
"name": "Rail 9.8 GX AXS T-Type Gen 4",
"price": "10999.97",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37028",
"name": "Rail 9.8 XT Gen 4",
"price": "10299.97",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37026",
"name": "Rail 9.7 Gen 4",
"price": "6499.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35678",
"name": "Rail 9.9 XX1 AXS Gen 3",
"price": "9499.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "37029",
"name": "Rail 9.8 GX AXS Gen 4",
"price": "9299.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35676",
"name": "Rail 9.9 XTR Gen 3",
"price": "8499.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "35680",
"name": "Rail 9.8 GX AXS Gen 3",
"price": "7399.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "35672",
"name": "Rail 9.8 XT Gen 3",
"price": "5999.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "35682",
"name": "Rail 9.8 GX Gen 3",
"price": "5999.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "CATEGORY",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}