Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "33937",
"name": "Electra Water Bottle Cage",
"price": "",
"brand": "Electra",
"category": "Bike water bottles & cages",
"variant": "tan",
"list": "More Options",
"position": 1
}
,
{
"id": "36760",
"name": "Electra Wired Can Holder & Ziggy Koozie",
"price": "",
"brand": "Electra",
"category": "Bike water bottles & cages",
"variant": "grey",
"list": "More Options",
"position": 2
}
,
{
"id": "13534",
"name": "Electra Linear Cup Holder",
"price": "",
"brand": "Electra",
"category": "Bike water bottles & cages",
"variant": "pinkvisibility",
"list": "More Options",
"position": 3
}
,
{
"id": "36761",
"name": "Electra Wired Can Holder & Tiki Koozie",
"price": "",
"brand": "Electra",
"category": "Bike water bottles & cages",
"variant": "black",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}