Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "44693",
"name": "e*Thirteen e*spec Race Carbon Crank for TQ",
"price": "8532.0",
"brand": "EThirteen",
"category": "Bike cranks & chainrings",
"variant": "greydark",
"list": "More Options",
"position": 1
}
,
{
"id": "44931",
"name": "e*Thirteen e*spec Plus Aluminum Crankarms for Bosch",
"price": "1044.0",
"brand": "EThirteen",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}