Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "17040",
"name": "Cruiser Lux 7D Men's",
"price": "",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "17434",
"name": "Cruiser Lux 3i Ladies'",
"price": "",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "white",
"list": "More Options",
"position": 2
}
,
{
"id": "17108",
"name": "Lux Fat 7D Men's",
"price": "",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "15572",
"name": "Delivery 3i Step-Over",
"price": "",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "grey",
"list": "More Options",
"position": 4
}
,
{
"id": "15589",
"name": "Straight 8 8i Men's",
"price": "",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}