Oversikt
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NOK",
"impressions": [
{
"id": "41973",
"name": "Trek Quilted Crewneck Unisex Sweatshirt",
"price": "679.15",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "More Options",
"position": 1
}
,
{
"id": "41971",
"name": "Trek Chain Stitch Unisex Hoodie",
"price": "639.2",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "tan",
"list": "More Options",
"position": 2
}
,
{
"id": "41978",
"name": "Trek Fun Badge Unisex Hoodie",
"price": "639.2",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "reddark",
"list": "More Options",
"position": 3
}
,
{
"id": "37316",
"name": "Trek 80s Fade hettegenser",
"price": "559.3",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}