Oversikt
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NOK",
"impressions": [
{
"id": "33835",
"name": "Electra Surfbird sokker",
"price": "169.15",
"brand": "Electra",
"category": "Cycling socks",
"variant": "blue_greenvisibility",
"list": "More Options",
"position": 1
}
,
{
"id": "33838",
"name": "Electra Tie Dye sokker",
"price": "169.15",
"brand": "Electra",
"category": "Cycling socks",
"variant": "purple",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}