if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "34174",
"name": "Electra Townie GO! 5i MIK Rear Rack",
"price": "129.99",
"brand": "Electra",
"category": "Bike racks",
"variant": "orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44393",
"name": "Electra Loft 25.4mm Handlebar",
"price": "29.99",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "greylight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "44092",
"name": "Electra Loft Fork Crown Fender/Fork Shim",
"price": "4.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "44298",
"name": "Electra Loft/Loft Go! Rear Fender Plug",
"price": "4.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}