Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "21648",
"name": "Electra Classics Valve Caps",
"price": "",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "bluedark",
"list": "More Options",
"position": 1
}
,
{
"id": "14557",
"name": "Electra Watermelon Valve Caps",
"price": "",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "teal_pink",
"list": "More Options",
"position": 2
}
,
{
"id": "14559",
"name": "Electra Pizza Valve Caps",
"price": "",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "21651",
"name": "Electra Cool Cat Valve Caps",
"price": "",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "pink",
"list": "More Options",
"position": 4
}
,
{
"id": "14556",
"name": "Electra Donut Valve Caps",
"price": "",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "pink",
"list": "More Options",
"position": 5
}
,
{
"id": "14558",
"name": "Electra Flower Valve Caps",
"price": "",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "white",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}