if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "41022",
"name": "Allant+ 7 Stagger Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41021",
"name": "Allant+ 7 Lowstep Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41029",
"name": "Allant+ 7 Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36936",
"name": "Allant+ 9",
"price": "",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37603",
"name": "Allant+ 9 Lowstep",
"price": "",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36933",
"name": "Allant+ 7 Stagger",
"price": "",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "36931",
"name": "Allant+ 7",
"price": "",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}