if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "34244",
"name": "Electra Unicorn Lifestyle-Fahrradhelm",
"price": "47.0",
"brand": "Electra",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35907",
"name": "Electra Slime Lifestyle Helm",
"price": "29.5",
"brand": "Electra",
"category": "Bike helmets",
"variant": "black_green",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35906",
"name": "Electra Tutti Frutti Lifestyle Helm",
"price": "29.5",
"brand": "Electra",
"category": "Bike helmets",
"variant": "pink",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "45050",
"name": "100% Airmatic Mountain Bike Pants",
"price": "109.0",
"brand": "100%",
"category": "Men's cycling tights & pants",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "33835",
"name": "Electra Surfbird Socks",
"price": "18.0",
"brand": "Electra",
"category": "Cycling socks",
"variant": "blue_greenvisibility",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "33838",
"name": "Electra Tie Dye Socks",
"price": "18.0",
"brand": "Electra",
"category": "Cycling socks",
"variant": "purple",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "33836",
"name": "Electra Burger Socks",
"price": "18.0",
"brand": "Electra",
"category": "Cycling socks",
"variant": "tan_red",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}