if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "42022",
"name": "Trek-Diamant FX Headset Split Ring",
"price": "10.99",
"brand": "Trek-Diamant",
"category": "Bike headsets",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "05699",
"name": "Cane Creek 1-1/8" Headset Compression Ring",
"price": "10.99",
"brand": "Cane Creek",
"category": "Bike headsets",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "42023",
"name": "Trek-Diamant FX Headset Top Cover",
"price": "3.99",
"brand": "Trek-Diamant",
"category": "Bike headsets",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41156",
"name": "Trek-Diamant 1.5" 36-Degree 49mm OD Headset Crown Race",
"price": "3.99",
"brand": "Trek-Diamant",
"category": "Bike headsets",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}