Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "34709",
"name": "E-Caliber 9.9 XX1 AXS Gen 1",
"price": "12999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "bluedark_blue",
"list": "More Options",
"position": 1
}
,
{
"id": "34707",
"name": "E-Caliber 9.9 XTR Gen 1",
"price": "11999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_black",
"list": "More Options",
"position": 2
}
,
{
"id": "35407",
"name": "E-Caliber 9.8 GX AXS 1e gén.",
"price": "10699.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "More Options",
"position": 3
}
,
{
"id": "34671",
"name": "E-Caliber 9.8 GX Gen 1",
"price": "9999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_black",
"list": "More Options",
"position": 4
}
,
{
"id": "34337",
"name": "E-Caliber 9.6 1e gén.",
"price": "6799.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_black",
"list": "More Options",
"position": 5
}
,
{
"id": "35141",
"name": "E-Caliber 9.6 2e gén.",
"price": "3099.5",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}