Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "44960",
"name": "Trek Boot Bag",
"price": "59.99",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "22738",
"name": "Bontrager MIK Utility Trunk Bag",
"price": "95.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "33172",
"name": "Bontrager MIK Commuter Boot Bag",
"price": "94.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "24465",
"name": "Bontrager City Boot Bag",
"price": "80.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "40322",
"name": "Electra Fern Boot Bag",
"price": "79.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "greendark",
"list": "More Options",
"position": 5
}
,
{
"id": "35100",
"name": "Bontrager-Electra MIK Stick",
"price": "8.99",
"brand": "Basil",
"category": "Bike bags",
"variant": "grey",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}