Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "36009",
"name": "Rétroviseur pour embout de cintre Electra Retrostripe",
"price": "39.99",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "22231",
"name": "Tiger Eye Bike Mirrors Helmet Mount Mirror",
"price": "32.99",
"brand": "Tiger Eye Bike Mirrors",
"category": "Bike mirrors",
"variant": "orange",
"list": "More Options",
"position": 2
}
,
{
"id": "36006",
"name": "Rétroviseur embout de cintre Electra Gnome",
"price": "29.93",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "36008",
"name": "Rétroviseur sur embout de cintre Electra Sun Rays",
"price": "29.93",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "tan_yellow",
"list": "More Options",
"position": 4
}
,
{
"id": "36007",
"name": "Rétroviseur sur embout de cintre Electra Ziggy",
"price": "29.93",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "tan_blue",
"list": "More Options",
"position": 5
}
,
{
"id": "30684",
"name": "Rétroviseur d’extrémité de cintre Electra",
"price": "29.93",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "pinklight",
"list": "More Options",
"position": 6
}
,
{
"id": "21642",
"name": "Electra Swirl Cruiser Handlebar Mirror",
"price": "6.93",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "white",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}