Visão geral
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "41821",
"name": "Slash 9.9 XTR 6ª Geração",
"price": "95000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "grey",
"list": "More Options",
"position": 1
}
,
{
"id": "41684",
"name": "Slash 9.8 GX AXS T-Type 6ª Geração",
"price": "74299.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 2
}
,
{
"id": "36732",
"name": "Slash 9.8 XT 5ª Geração",
"price": "31000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 3
}
,
{
"id": "35068",
"name": "Slash 9.7 5ª Geração",
"price": "22500.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "bluedark_black",
"list": "More Options",
"position": 4
}
,
{
"id": "36731",
"name": "Slash 8 5ª Geração",
"price": "18500.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "orange",
"list": "More Options",
"position": 5
}
,
{
"id": "36730",
"name": "Slash 7 5ª Geração",
"price": "16000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}