Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "13497",
"name": "Trek TAB Belt Drive 9 Spline Cog",
"price": "",
"brand": "Trek",
"category": "Bike cassettes & freewheels",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "26194",
"name": "Trek TAB Belt Drive IGH Cog",
"price": "",
"brand": "Trek",
"category": "Bike cassettes & freewheels",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "26192",
"name": "Gates Carbon Drive SureFoot 3-Lobe Rear Cog",
"price": "",
"brand": "Gates",
"category": "Bike cassettes & freewheels",
"variant": "greylight",
"list": "More Options",
"position": 3
}
,
{
"id": "45323",
"name": "microSHIFT ADVENT H-Series CS-H093 9-Speed Cassette",
"price": "",
"brand": "microSHIFT",
"category": "Bike cassettes & freewheels",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "45324",
"name": "microSHIFT Acolyte H-Series CS-H083 8-Speed Cassette",
"price": "",
"brand": "microSHIFT",
"category": "Bike cassettes & freewheels",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}