if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "27158",
"name": "Electra Café Moto GO! Dropout Kit",
"price": "19.99",
"brand": "Electra",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "24293",
"name": "Electra Townie Derailleur Hanger",
"price": "8.99",
"brand": "Electra",
"category": "Bike hangers & dropouts",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37569",
"name": "Electra Townie 135 x 12 mm Derailleur Hanger",
"price": "8.99",
"brand": "Electra",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "24291",
"name": "Trek-Electra Disc Derailleur Hanger",
"price": "19.99",
"brand": "Bontrager-Electra",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}