if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "41738",
"name": "Trek Windshell Cycling Balaclava",
"price": "22.99",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41739",
"name": "Trek Thermal Cycling Neck Gaiter",
"price": "18.99",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41737",
"name": "Trek Windshell Cycling Cap",
"price": "18.99",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41736",
"name": "Trek Windshell Cycling Skull Cap",
"price": "16.99",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "41735",
"name": "Trek Thermal Cycling Headband",
"price": "13.99",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}