if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "25874",
"name": "Aperto de Espigão para Criança da Trek",
"price": "3.99",
"brand": "Trek",
"category": "Bike seatposts & accessories",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41994",
"name": "Trek Kids' Center Mount 235mm Kickstand",
"price": "17.49",
"brand": "Trek",
"category": "Bike kickstands",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32536",
"name": "Trek Kids' Center Mount 247mm Kickstand",
"price": "17.49",
"brand": "Trek",
"category": "Bike kickstands",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}