Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "32494",
"name": "Entrenador inteligente Saris Fluid2",
"price": "5339.0",
"brand": "Saris",
"category": "Bike trainers & rollers",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "32495",
"name": "Entrenador Saris Fluid2",
"price": "2939.0",
"brand": "Saris",
"category": "Bike trainers & rollers",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "32496",
"name": "Entrenador Saris Mag+",
"price": "2669.0",
"brand": "Saris",
"category": "Bike trainers & rollers",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "33487",
"name": "Entrenador Saris Mag",
"price": "2669.0",
"brand": "Saris",
"category": "Bike trainers & rollers",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "23027",
"name": "CycleOps Sweat Guard with Phone Holder",
"price": "799.0",
"brand": "CycleOps",
"category": "Phone & tablet accessories",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}