if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "47330",
"name": "Casquette de cycliste Rapha Cap II",
"price": "28.5",
"brand": "Rapha",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47321",
"name": "Chaussettes de cycliste Rapha Pro Team",
"price": "23.0",
"brand": "Rapha",
"category": "Men's cycling socks",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47322",
"name": "Chaussettes de cycliste Rapha Logo",
"price": "18.0",
"brand": "Rapha",
"category": "Men's cycling socks",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}