if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "36732",
"name": "Slash 9.8 XT 5ª Geração",
"price": "31000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35068",
"name": "Slash 9.7 5ª Geração",
"price": "22500.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "bluedark_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36731",
"name": "Slash 8 5ª Geração",
"price": "18500.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36730",
"name": "Slash 7 5ª Geração",
"price": "16000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}