if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "37023",
"name": "Farley 9",
"price": "2799.98",
"brand": "Trek",
"category": "Fat bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37019",
"name": "Farley 7",
"price": "2299.98",
"brand": "Trek",
"category": "Fat bikes",
"variant": "yellow",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37018",
"name": "Farley 5",
"price": "1699.98",
"brand": "Trek",
"category": "Fat bikes",
"variant": "tealdark_greydark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37020",
"name": "Farley 9.6",
"price": "3699.99",
"brand": "Trek",
"category": "Fat bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "33745",
"name": "Farley C Frameset",
"price": "2599.99",
"brand": "Trek",
"category": "Fat bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "40735",
"name": "Farley AL Frameset",
"price": "1499.99",
"brand": "Trek",
"category": "Fat bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "33744",
"name": "Farley AL Frameset",
"price": "699.93",
"brand": "Trek",
"category": "Fat bikes",
"variant": "bluedark_tealdark",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}