if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "48906",
"name": "Rapha merino baselayer",
"price": "85.0",
"brand": "Rapha",
"category": "Men's cycling baselayers",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "48907",
"name": "Rapha merino baselayer voor dames",
"price": "85.0",
"brand": "Rapha",
"category": "Women's cycling baselayers",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}