if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "46694",
"name": "Pirelli Cinturato Gravel RC-X Gravel Tyre",
"price": "67.99",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "38208",
"name": "Pirelli Cinturato Gravel M Tyre",
"price": "62.99",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "38204",
"name": "Pirelli Cinturato Gravel H Tyre",
"price": "62.99",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "42169",
"name": "Pirelli Cinturato Gravel RC Gravel Tyre",
"price": "60.99",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}