Overblik
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "DKK",
"impressions": [
{
"id": "32096",
"name": "Trek Top Fuel 29 2020 kædestagsmærkat med logo",
"price": "95.0",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "14807",
"name": "Trek emblemer til kronrør",
"price": "55.0",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "greylight",
"list": "More Options",
"position": 2
}
,
{
"id": "12711",
"name": "Electra Delivery 3i-stelskilt",
"price": "209.0",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "tan",
"list": "More Options",
"position": 3
}
,
{
"id": "22778",
"name": "Electra Cruiser Lux-reklameskilte",
"price": "169.0",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "white_black",
"list": "More Options",
"position": 4
}
,
{
"id": "34817",
"name": "Electra-emblem til kronrøret",
"price": "99.0",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "More Options",
"position": 5
}
,
{
"id": "44283",
"name": "Electra Loft Go! Seat Tube Badge",
"price": "50.0",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "More Options",
"position": 6
}
,
{
"id": "12591",
"name": "Electra-kædeskærmsemblem",
"price": "40.0",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}