Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "47530",
"name": "Checkpoint ALR 3",
"price": "1299.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "red",
"list": "More Options",
"position": 1
}
,
{
"id": "41640",
"name": "Checkpoint ALR 5",
"price": "2499.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "tealdark",
"list": "More Options",
"position": 2
}
,
{
"id": "35668",
"name": "Kit cadre Checkpoint ALR",
"price": "1199.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "reddark",
"list": "More Options",
"position": 3
}
,
{
"id": "32557",
"name": "Checkpoint ALR 5",
"price": "2599.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "tealdark",
"list": "More Options",
"position": 4
}
,
{
"id": "32556",
"name": "Checkpoint ALR 4",
"price": "2299.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "reddark",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}