Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "25044",
"name": "Pasamontañas para Ciclismo Bontrager Windshell",
"price": "49.99",
"brand": "Bontrager",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "25036",
"name": "Gorra de Ciclismo Bontrager Windshell Skull",
"price": "39.99",
"brand": "Bontrager",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "22819",
"name": "Gorra para Ciclismo Bontrager UV SunStop",
"price": "37.8",
"brand": "Bontrager",
"category": "Cycling caps & headwear",
"variant": "white",
"list": "More Options",
"position": 3
}
,
{
"id": "08591",
"name": "Protector de cuello de ciclismo Bontrager Convertible",
"price": "34.99",
"brand": "Bontrager",
"category": "Cycling caps & headwear",
"variant": "black_grey",
"list": "More Options",
"position": 4
}
,
{
"id": "25033",
"name": "Bandana Térmica de Ciclismo Bontrager",
"price": "21.59",
"brand": "Bontrager",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}