Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "22439",
"name": "Trek Round Alloy Seatmast Cap & 7mm Ears",
"price": "111.99",
"brand": "Trek",
"category": "Bike seatposts & accessories",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "32429",
"name": "Trek Madone SLR Seatpost Reflector Mounting Bolt",
"price": "2.8",
"brand": "Trek",
"category": "Bike seatposts & accessories",
"variant": "greylight",
"list": "More Options",
"position": 2
}
,
{
"id": "33107",
"name": "DropLock Remote de Bontrager",
"price": "167.99",
"brand": "Bontrager",
"category": "Bike seatposts & accessories",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "24758",
"name": "Bontrager Eyeleted Quick Release Seatpost Clamp",
"price": "19.59",
"brand": "Bontrager",
"category": "Bike seatposts & accessories",
"variant": "black",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}