Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "42277",
"name": "Checkpoint ALR 5 AXS",
"price": "3399.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "white",
"list": "More Options",
"position": 1
}
,
{
"id": "41640",
"name": "Checkpoint ALR 5",
"price": "2649.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "red",
"list": "More Options",
"position": 2
}
,
{
"id": "41513",
"name": "Checkpoint ALR 4",
"price": "2049.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "bluedark",
"list": "More Options",
"position": 3
}
,
{
"id": "35172",
"name": "Checkpoint ALR 5",
"price": "2799.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "white_black",
"list": "More Options",
"position": 4
}
,
{
"id": "32557",
"name": "Checkpoint ALR 5",
"price": "2599.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "tealdark",
"list": "More Options",
"position": 5
}
,
{
"id": "32556",
"name": "Checkpoint ALR 4",
"price": "2299.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "reddark",
"list": "More Options",
"position": 6
}
,
{
"id": "32692",
"name": "Kit cadre CHECKPOINT ALR",
"price": "1229.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "tealdark",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}