if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "13495",
"name": "Trek TAB Belt Tensioner",
"price": "49.99",
"brand": "Trek",
"category": "Bike chains",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "31962",
"name": "Gates Drive Belt",
"price": "119.99",
"brand": "Gates",
"category": "E-bike drivetrain parts",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "11008",
"name": "Gates Center Track Belts",
"price": "89.99",
"brand": "Gates",
"category": "Bike chains",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "13496",
"name": "Trek TAB Belt",
"price": "64.99",
"brand": "Trek",
"category": "Bike chains",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}