Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "29377",
"name": "Jeu de pédales à bande antidérapante Electra",
"price": "13.99",
"brand": "Electra",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "12669",
"name": "Jeu de pédales Electra Deluxe Block",
"price": "13.99",
"brand": "Electra",
"category": "Bike pedals",
"variant": "grey_black",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}