if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "28073",
"name": "Townie 7D EQ Step-Thru",
"price": "450.0",
"brand": "Electra",
"category": "Townie",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "28070",
"name": "Townie 7D EQ Step-Over",
"price": "450.0",
"brand": "Electra",
"category": "Townie",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}