if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "14564",
"name": "Electra Sticker Pack",
"price": "8.0",
"brand": "Electra",
"category": "Cycling gifts & fun stuff",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "34014",
"name": "Electra Lenker-Streamer",
"price": "6.0",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "pinkdark_reflective",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}