Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "37319",
"name": "Sudadera de cuello redondo Trek Script",
"price": "",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "greydark",
"list": "More Options",
"position": 1
}
,
{
"id": "32584",
"name": "Trek 1976 Sweatshirt",
"price": "",
"brand": "Trek",
"category": "Casual cycling wear",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "37316",
"name": "Hoodie Trek 80s Fade",
"price": "",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "More Options",
"position": 3
}
,
{
"id": "32586",
"name": "Trek All-District Sweatshirt",
"price": "",
"brand": "Trek",
"category": "Casual cycling wear",
"variant": "bluedark",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}