Visão geral
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "35915",
"name": "Trek 2022 Domane SL 6 700c Rigid Fork",
"price": "3950.0",
"brand": "Trek",
"category": "Bike forks",
"variant": "red_black",
"list": "More Options",
"position": 1
}
,
{
"id": "37799",
"name": "SR Suntour 2021 NEX Threaded Disc 700c Suspension Fork",
"price": "3360.0",
"brand": "SR SUNTOUR",
"category": "Bike forks",
"variant": "black",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}