if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "35294",
"name": "Checkpoint SLR 7",
"price": "",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "yellow_bluedark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41349",
"name": "Checkpoint SLR 7 AXS",
"price": "",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "black_greendark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35296",
"name": "Checkpoint SLR 9 AXS",
"price": "",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "yellow_bluedark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35293",
"name": "Checkpoint SLR 6 AXS",
"price": "",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "yellow_bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35295",
"name": "Checkpoint SLR 7 AXS",
"price": "",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "yellow_bluedark",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}