Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "31774",
"name": "Electra Townie Original Handlebar",
"price": "",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "12646",
"name": "Electra Café Cruiser Handlebar",
"price": "",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "grey",
"list": "More Options",
"position": 2
}
,
{
"id": "32443",
"name": "Electra Attitude Cruiser Handlebar",
"price": "",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "32444",
"name": "Electra Café Cruiser Handlebar",
"price": "",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "13994",
"name": "Electra Mini Ape Hanger Cruiser Handlebar",
"price": "",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "12765",
"name": "Electra Amsterdam Handlebar",
"price": "",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "greylight",
"list": "More Options",
"position": 6
}
,
{
"id": "36737",
"name": "Electra Townie Sandblasted Handlebar",
"price": "",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "greylight",
"list": "More Options",
"position": 7
}
,
{
"id": "44808",
"name": "Electra Ponto Go! Handlebar",
"price": "",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "13993",
"name": "Electra Ape Hanger Cruiser Handlebar",
"price": "",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}