Översikt
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SEK",
"impressions": [
{
"id": "41973",
"name": "Trek Quilted Crewneck unisex sweatshirt",
"price": "639.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "greendark",
"list": "More Options",
"position": 1
}
,
{
"id": "41978",
"name": "Trek Fun Badge Unisex Hoodie",
"price": "639.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "reddark",
"list": "More Options",
"position": 2
}
,
{
"id": "41971",
"name": "Trek Chain Stitch Unisex Hoodie",
"price": "639.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "tan",
"list": "More Options",
"position": 3
}
,
{
"id": "41972",
"name": "Trek Color Block Logo Unisex Hoodie",
"price": "639.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "greendark_tan",
"list": "More Options",
"position": 4
}
,
{
"id": "41969",
"name": "Trek Department of Fun Unisex Hoodie",
"price": "639.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "More Options",
"position": 5
}
,
{
"id": "36295",
"name": "Trek Original Crewneck sweatshirt",
"price": "559.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "More Options",
"position": 6
}
,
{
"id": "37316",
"name": "Treks 90-tals huvtröja Fade",
"price": "559.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "More Options",
"position": 7
}
,
{
"id": "37319",
"name": "Trek Script Crewneck sweatshirt",
"price": "400.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "greydark",
"list": "More Options",
"position": 8
}
,
{
"id": "45019",
"name": "100% Trek Factory Racing huvtröja",
"price": "859.0",
"brand": "100%",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "More Options",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}