if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "35904",
"name": "Electra Ziggy Lifestyle Helmet",
"price": "39.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "tan_blue",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35707",
"name": "Electra Ziggy Elastomer Saddle",
"price": "39.99",
"brand": "Electra",
"category": "Bike saddles",
"variant": "brown",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35896",
"name": "Electra Ziggy Phone Bag",
"price": "31.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "brown_blue",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35898",
"name": "Electra Ziggy Saddle Bag",
"price": "23.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "brown_blue",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35892",
"name": "Electra Ziggy Handlebar Bag",
"price": "23.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "brown_blue",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35711",
"name": "Electra Ziggy Rubber Grips",
"price": "19.99",
"brand": "Electra",
"category": "Bike handlebar grips & tape",
"variant": "brown",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}