Oversikt
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NOK",
"impressions": [
{
"id": "37082",
"name": "Trek Evoke Mountain Bike Tech Tee",
"price": "449.0",
"brand": "Trek",
"category": "Mountain bike jerseys",
"variant": "greendark",
"list": "More Options",
"position": 1
}
,
{
"id": "45017",
"name": "100% Trek Factory Racing Long Sleeve Airmatic",
"price": "749.0",
"brand": "100%",
"category": "Mountain bike jerseys",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "45018",
"name": "100% Trek Factory Racing teknisk t-skjorte",
"price": "459.0",
"brand": "100%",
"category": "Mountain bike jerseys",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "44136",
"name": "Santini Trek Factory Racing Men's XC Team Replica Cycling Jersey",
"price": "979.0",
"brand": "Santini",
"category": "Mountain bike jerseys",
"variant": "bluedark",
"list": "More Options",
"position": 4
}
,
{
"id": "22790",
"name": "Bontrager Quantum trenings-t-skjorte til dame",
"price": "209.3",
"brand": "Bontrager",
"category": "Fitness & commuter apparel",
"variant": "red",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}