if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SEK",
"impressions": [
{
"id": "41980",
"name": "Trek Oh Deer Beanie",
"price": "179.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "45019",
"name": "100% Trek Factory Racing huvtröja",
"price": "859.0",
"brand": "100%",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "45021",
"name": "100% Trek Factory Racing fempanelskeps",
"price": "399.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "45022",
"name": "100% Trek Factory Racing tofsmössa",
"price": "349.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "45020",
"name": "100% Trek Factory Racing truckerkeps",
"price": "349.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}