Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "27542",
"name": "Trek Hydraulic Housing Front Frame Grommet",
"price": "",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "32115",
"name": "Tektro Hydraulic Brake Hose Kit",
"price": "",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "33534",
"name": "Fox Suspension Fork Brake Hose Guide Kit 2020",
"price": "",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}