Resumen
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "45319",
"name": "Trek Tyro Youth Bike Helmet Visor",
"price": "7.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "45318",
"name": "Trek Tyro Child Bike Helmet Visor",
"price": "7.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "44098",
"name": "Trek Solstice Youth Bike Helmet Visor",
"price": "5.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "44099",
"name": "Trek Solstice Children's Bike Helmet Visor",
"price": "3.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "14157",
"name": "Bontrager Quantum Mips Bike Helmet Visor",
"price": "17.49",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "14164",
"name": "Visera para casco de bicicleta Bontrager Solstice",
"price": "17.49",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "white",
"list": "More Options",
"position": 6
}
,
{
"id": "28844",
"name": "Visera para casco Bontrager Blaze WaveCel",
"price": "17.49",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "32638",
"name": "Visera para casco de bicicleta Bontrager Tyro Youth",
"price": "9.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "32637",
"name": "Bontrager Tyro Children's Bike Helmet Visor",
"price": "9.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "14223",
"name": "Bontrager Ballista Bike Helmet Vent Cover",
"price": "8.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "More Options",
"position": 10
}
,
{
"id": "33564",
"name": "Visera para casco de bicicleta Bontrager Rally WaveCel",
"price": "6.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "More Options",
"position": 11
}
,
{
"id": "22829",
"name": "Electra Helmet Visor",
"price": "8.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "black",
"list": "More Options",
"position": 12
}
]
}
});
} else {
console.log("dataLayer");
}