Oversikt
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NOK",
"impressions": [
{
"id": "32096",
"name": "Trek 2020 Top Fuel 29 Chainstay Logo Decal",
"price": "129.0",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "14807",
"name": "Trek emblem for styrerør",
"price": "75.0",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "greylight",
"list": "More Options",
"position": 2
}
,
{
"id": "12711",
"name": "Electra Delivery 3i tankplate",
"price": "299.0",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "tan",
"list": "More Options",
"position": 3
}
,
{
"id": "32995",
"name": "Diamant Headbadge",
"price": "229.0",
"brand": "Diamant",
"category": "Bike frame parts",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "22778",
"name": "Electra Cruiser Lux annonseringsskilt",
"price": "229.0",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "white_black",
"list": "More Options",
"position": 5
}
,
{
"id": "34817",
"name": "Electra merke til styrerøret",
"price": "139.0",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "More Options",
"position": 6
}
,
{
"id": "44283",
"name": "Electra Loft Go! Seat Tube Badge",
"price": "70.0",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}