Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "41734",
"name": "Calentadores de piernas térmicos para ciclismo Trek",
"price": "1459.0",
"brand": "Trek",
"category": "Cycling arm & leg warmers",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "41235",
"name": "Cubrebrazos para Ciclismo Trek UV Sunstop",
"price": "759.0",
"brand": "Trek",
"category": "Cycling arm & leg warmers",
"variant": "yellowvisibility",
"list": "More Options",
"position": 2
}
,
{
"id": "25032",
"name": "Calentadores de piernas térmicos para ciclismo Bontrager",
"price": "1459.0",
"brand": "Bontrager",
"category": "Cycling arm & leg warmers",
"variant": "yellowvisibility",
"list": "More Options",
"position": 3
}
,
{
"id": "25028",
"name": "Calentadores de brazos térmicos para ciclismo Bontrager",
"price": "999.0",
"brand": "Bontrager",
"category": "Cycling arm & leg warmers",
"variant": "yellowvisibility",
"list": "More Options",
"position": 4
}
,
{
"id": "22817",
"name": "Cubrebrazos para Ciclismo Bontrager UV Sunstop",
"price": "759.0",
"brand": "Bontrager",
"category": "Cycling arm & leg warmers",
"variant": "yellowvisibility",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}