Visão geral
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "24293",
"name": "Electra Townie Derailleur Hanger",
"price": "10.99",
"brand": "Electra",
"category": "Bike hangers & dropouts",
"variant": "grey",
"list": "More Options",
"position": 1
}
,
{
"id": "37569",
"name": "Electra Townie 135 x 12mm Derailleur Hanger",
"price": "9.99",
"brand": "Electra",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "24291",
"name": "Trek-Electra Disc Derailleur Hanger",
"price": "22.49",
"brand": "Bontrager-Electra",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}