if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "40883",
"name": "Allant+ 7S Gen 2",
"price": "3499.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40884",
"name": "Allant+ 7S Stagger Gen 2",
"price": "3499.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34872",
"name": "Vale Go! 9D EQ S",
"price": "3299.99",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "tan",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36841",
"name": "Verve+ 4S Lowstep",
"price": "3499.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "yellow",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36840",
"name": "Verve+ 4S",
"price": "3499.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "30265",
"name": "Allant+ 8S",
"price": "3199.93",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "30266",
"name": "Allant+ 8S Stagger",
"price": "3199.93",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "31929",
"name": "Allant+ 7S",
"price": "2999.93",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "31930",
"name": "Allant+ 7S Stagger",
"price": "2999.93",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}