Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "23015",
"name": "Miranda Crankarm Bolts",
"price": "12.99",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "45279",
"name": "Trek Domane+ SLR 2x Crank Spider Spacer",
"price": "5.99",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "grey",
"list": "More Options",
"position": 2
}
,
{
"id": "36412",
"name": "Trek 2022 Session 29 Idler Pulley 3.5mm Spacer",
"price": "4.99",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "grey",
"list": "More Options",
"position": 3
}
,
{
"id": "36411",
"name": "Trek 2022 Session 29 Idler Pulley 4.5mm Black Spacer",
"price": "4.99",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "31390",
"name": "Prowheel Crankarm Bolts",
"price": "3.99",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "36832",
"name": "Trek-Diamant Prowheel Crank Preload Bolt",
"price": "8.99",
"brand": "Prowheel",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}