if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "26259",
"name": "Electra Townie Semi-Integrated Zero-Stack Threaded Headset",
"price": "27.49",
"brand": "Electra",
"category": "Bike headsets",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35971",
"name": "Electra Townie Commute Go! Locking Headset",
"price": "17.49",
"brand": "Electra",
"category": "Bike headsets",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "21507",
"name": "Electra Townie Headset Covers",
"price": "14.99",
"brand": "Electra",
"category": "Bike headsets",
"variant": "greylight",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35972",
"name": "Electra Cruiser Go! Threaded Headset",
"price": "10.99",
"brand": "Electra",
"category": "Bike headsets",
"variant": "greylight",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "41764",
"name": "Electra 1-1/8" Threadless External Cup Headset",
"price": "10.99",
"brand": "Electra",
"category": "Bike headsets",
"variant": "greylight",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}