if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "47337",
"name": "Rapha Women's Pro Team Training Cycling Bib Short",
"price": "210.0",
"brand": "Rapha",
"category": "Cycling bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47307",
"name": "Rapha Pro Team Training Cycling Bib Short",
"price": "210.0",
"brand": "Rapha",
"category": "Cycling bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40755",
"name": "PEARL iZUMi Pro Cycling Bib Short",
"price": "225.0",
"brand": "PEARL iZUMi",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "47301",
"name": "Rapha Pro Team II Cycling Bib Short",
"price": "295.0",
"brand": "Rapha",
"category": "Cycling bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}