Visão geral
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "12711",
"name": "Electra Delivery 3i Tank Plate",
"price": "29.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "tan",
"list": "More Options",
"position": 1
}
,
{
"id": "22778",
"name": "Electra Cruiser Lux Ad Panels",
"price": "22.49",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "white_black",
"list": "More Options",
"position": 2
}
,
{
"id": "34817",
"name": "Electra Headtube Badge",
"price": "13.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "More Options",
"position": 3
}
,
{
"id": "12591",
"name": "Electra Frame Badge",
"price": "4.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}