if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SEK",
"impressions": [
{
"id": "33770",
"name": "Electra Leopard Phone Bag",
"price": "199.5",
"brand": "Electra",
"category": "Bike bags",
"variant": "white_purplelight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33612",
"name": "Electra Leopard Handlebar Bag with Lid",
"price": "149.5",
"brand": "Electra",
"category": "Bike bags",
"variant": "white_purplelight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33774",
"name": "Electra Leopard Saddle Bag",
"price": "149.5",
"brand": "Electra",
"category": "Bike bags",
"variant": "white_purplelight",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}