if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "21830",
"name": "Bontrager RIDEtime Elite Cycling Computer",
"price": "62.99",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "21829",
"name": "Bontrager RIDEtime Cycling Computer",
"price": "53.99",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "11077",
"name": "Bontrager GOtime Cycling Computer",
"price": "32.99",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}