Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "23032",
"name": "Trek Checkpoint Carbon Armour",
"price": "27.49",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "12338",
"name": "Trek 3S Chainkeeper",
"price": "19.99",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "26161",
"name": "Trek Madone/Émonda SLR Chainkeeper",
"price": "9.99",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "37599",
"name": "Trek Checkpoint SL & SLR Gen 2 Chainstay Armor",
"price": "8.99",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "37727",
"name": "Trek Checkpoint SL & SLR Downtube Armor",
"price": "8.99",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "34426",
"name": "Trek Madone 9 Aero Chainkeeper",
"price": "7.99",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "28423",
"name": "Trek Boone CX Chainstay Armor",
"price": "6.99",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "10282",
"name": "Trek Carbon Road Frame Chainstay Strike Plate",
"price": "4.99",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "grey",
"list": "More Options",
"position": 8
}
,
{
"id": "28332",
"name": "Trek P1 Road Chainstay Protector",
"price": "2.99",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "grey",
"list": "More Options",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}