if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "31851",
"name": "Trek Domane SLR IsoSpeed Seatmast Bumper",
"price": "2.99",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44957",
"name": "Bontrager Line 31.6mm Gen 3 Dropper Travel Reducing Spacer",
"price": "2.99",
"brand": "Bontrager",
"category": "Bike seatposts & accessories",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32429",
"name": "Trek Madone SLR Seatpost Reflector Mounting Bolt",
"price": "1.99",
"brand": "Trek",
"category": "Bike seatposts & accessories",
"variant": "greylight",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "42264",
"name": "Trek-Diamant Ergotec PM-705N 90-110kg Suspension Seatpost",
"price": "189.99",
"brand": "Trek-Diamant",
"category": "Bike seatposts & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "12689",
"name": "Electra Quick Release Seat Collar",
"price": "18.99",
"brand": "Electra",
"category": "Bike seatposts & accessories",
"variant": "greylight",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "12688",
"name": "Electra 28.6mm Seatpost Clamp with Rack Mounts",
"price": "11.99",
"brand": "Electra",
"category": "Bike seatposts & accessories",
"variant": "greylight",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "25889",
"name": "Electra 31.8mm Seatpost Clamps w/ Rack Mounts",
"price": "11.99",
"brand": "Electra",
"category": "Bike seatposts & accessories",
"variant": "greylight",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}