Overblik
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "DKK",
"impressions": [
{
"id": "25889",
"name": "31,8 mm Electra-sadelpindklampe med bagagebærerbeslag",
"price": "90.0",
"brand": "Electra",
"category": "Bike seatposts & accessories",
"variant": "greylight",
"list": "More Options",
"position": 1
}
,
{
"id": "12688",
"name": "28,6 mm Electra-sadelpindklampe med bagagebærerbeslag",
"price": "90.0",
"brand": "Electra",
"category": "Bike seatposts & accessories",
"variant": "greylight",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}