if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NOK",
"impressions": [
{
"id": "37324",
"name": "Trek Ride Club t-skjorte",
"price": "299.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36291",
"name": "Trek Original Women's t-skjorte",
"price": "254.15",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41971",
"name": "Trek Chain Stitch Unisex Hoodie",
"price": "639.2",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "tan",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40152",
"name": "Santini Trek-Segafredo Men's Team Polo",
"price": "339.5",
"brand": "Santini",
"category": "T-Shirts",
"variant": "bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "41981",
"name": "Trek Sunset Script Beanie",
"price": "179.4",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "bluedark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "45021",
"name": "100% Trek Factory Racing 5 Panel-kaps",
"price": "399.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "45022",
"name": "100% Trek Factory Racing Pom Beanie",
"price": "349.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}