if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "81633",
"name": "Rapha Men's Trail Tech T-Shirt",
"price": "51.93",
"brand": "Rapha",
"category": "T-Shirts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "81634",
"name": "Rapha Women's Trail Tech MTB T-Shirt",
"price": "51.93",
"brand": "Rapha",
"category": "T-Shirts",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47325",
"name": "Rapha Cotton Tee",
"price": "44.93",
"brand": "Rapha",
"category": "T-Shirts",
"variant": "bluedark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "47326",
"name": "Rapha Women's Cotton Tee",
"price": "41.93",
"brand": "Rapha",
"category": "T-Shirts",
"variant": "bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "80796",
"name": "Fox Racing Trek x Unbroken Team T-shirt",
"price": "29.93",
"brand": "Fox Racing",
"category": "T-Shirts",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}