if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "47094",
"name": "Slash+ 9.7 SLX/XT",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47091",
"name": "Slash+ 9.7 SLX/XT",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47096",
"name": "Slash+ 9.9 X0 AXS T-Type",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "47093",
"name": "Slash+ 9.9 X0 AXS T-Type",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}