if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "47291",
"name": "Rapha Pro Team Training Cycling Jersey",
"price": "115.0",
"brand": "Rapha",
"category": "Road bike jerseys",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47321",
"name": "Rapha Pro Team Cycling Socks",
"price": "20.0",
"brand": "Rapha",
"category": "Men's cycling socks",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47337",
"name": "Rapha Pro Team Women's Training Cycling Bib Shorts",
"price": "170.0",
"brand": "Rapha",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "47292",
"name": "Rapha Pro Team Women's Training Cycling Jersey",
"price": "115.0",
"brand": "Rapha",
"category": "Road bike jerseys",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}