if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SEK",
"impressions": [
{
"id": "41839",
"name": "Electra Townie 7D Fender Hardware Set",
"price": "90.0",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "42250",
"name": "Electra PVC Light Wire Sleeve",
"price": "45.0",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}