Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "14556",
"name": "Electra Donut Valve Caps",
"price": "",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "pink",
"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": "21648",
"name": "Electra Classics Valve Caps",
"price": "",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "bluedark",
"list": "More Options",
"position": 4
}
,
{
"id": "14561",
"name": "Electra Taco Valve Caps",
"price": "",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "yellowlight_red",
"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");
}