if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "12712",
"name": "Electra Amsterdam Hybrid 700c Tyre",
"price": "17.49",
"brand": "Electra",
"category": "Bike tires",
"variant": "black_reflective",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "13072",
"name": "Electra Loft 700c Tyre",
"price": "17.49",
"brand": "Electra",
"category": "Bike tires",
"variant": "brown_white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "12716",
"name": "Electra Cruiser Fatti-O 24" Tyre",
"price": "17.49",
"brand": "Electra",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "12714",
"name": "Electra Townie Original Tyres",
"price": "14.99",
"brand": "Electra",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "21678",
"name": "Electra Lux Fat 26" Tyre",
"price": "49.99",
"brand": "Electra",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "12713",
"name": "Schwalbe Fat Frank Cruiser Tire",
"price": "29.99",
"brand": "Schwalbe",
"category": "Bike tires",
"variant": "black_reflective",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}