if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "26061",
"name": "VP Components FP-BC63 Square Taper Fat Bike Bottom Bracket",
"price": "17.49",
"brand": "Electra",
"category": "Bike bottom brackets",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41769",
"name": "Electra Loft Go! 7D Bottom Bracket Cover",
"price": "8.99",
"brand": "Electra",
"category": "E-bike drivetrain parts",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}