Présentation
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "36846",
"name": "Precaliber 24 à 8 vitesses suspendu",
"price": "619.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greydark",
"list": "More Options",
"position": 1
}
,
{
"id": "36268",
"name": "Precaliber 20 à 7 vitesses",
"price": "499.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 2
}
,
{
"id": "36266",
"name": "Precaliber 16 Coaster Brake",
"price": "389.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pink",
"list": "More Options",
"position": 3
}
,
{
"id": "36265",
"name": "Precaliber 12",
"price": "369.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 4
}
,
{
"id": "36965",
"name": "Precaliber 24 à 8 vitesses",
"price": "529.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greylight",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}