Oversikt
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NOK",
"impressions": [
{
"id": "40275",
"name": "Electra Classic Faux Leather Bike Saddle",
"price": "466.0",
"brand": "Electra",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "28576",
"name": "Electra Vinyl Ergo sykkelsete",
"price": "459.0",
"brand": "Electra",
"category": "Bike saddles",
"variant": "grey",
"list": "More Options",
"position": 2
}
,
{
"id": "35707",
"name": "Electra Ziggy elastomersete",
"price": "338.0",
"brand": "Electra",
"category": "Bike saddles",
"variant": "brown",
"list": "More Options",
"position": 3
}
,
{
"id": "14003",
"name": "Electra Cruiser XL Bike Saddle",
"price": "306.0",
"brand": "Electra",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "35708",
"name": "Electra Miami elastomersete",
"price": "264.5",
"brand": "Electra",
"category": "Bike saddles",
"variant": "tan",
"list": "More Options",
"position": 5
}
,
{
"id": "12682",
"name": "Electra Heartchya Cruiser Bike Saddle",
"price": "259.0",
"brand": "Electra",
"category": "Bike saddles",
"variant": "white",
"list": "More Options",
"position": 6
}
,
{
"id": "32678",
"name": "Electra Water Lily Cruiser sykkelsete",
"price": "259.0",
"brand": "Electra",
"category": "Bike saddles",
"variant": "white_yellowvisibility",
"list": "More Options",
"position": 7
}
,
{
"id": "14002",
"name": "Electra Cruiser Bike Saddle w/Elastomers",
"price": "255.0",
"brand": "Electra",
"category": "Bike saddles",
"variant": "white",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}