if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "37023",
"name": "Farley 9",
"price": "3349.98",
"brand": "Trek",
"category": "Fat bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37019",
"name": "Farley 7",
"price": "2899.98",
"brand": "Trek",
"category": "Fat bikes",
"variant": "yellow",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37018",
"name": "Farley 5",
"price": "2099.98",
"brand": "Trek",
"category": "Fat bikes",
"variant": "tealdark_greydark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37020",
"name": "Farley 9.6",
"price": "4599.99",
"brand": "Trek",
"category": "Fat bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "33745",
"name": "Farley C Frameset",
"price": "3199.99",
"brand": "Trek",
"category": "Fat bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "40735",
"name": "Farley AL Frameset",
"price": "1899.99",
"brand": "Trek",
"category": "Fat bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "33744",
"name": "Farley AL Frameset",
"price": "959.93",
"brand": "Trek",
"category": "Fat bikes",
"variant": "bluedark_tealdark",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}