Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "21832",
"name": "Juego de salpicaderas Bontrager NCS",
"price": "94.99",
"brand": "Bontrager",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "14743",
"name": "Electra Townie GO! 8i Fender Set",
"price": "100.0",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "greylight",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}