Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "48906",
"name": "Rapha Merino Cycling Baselayer",
"price": "90.0",
"brand": "Rapha",
"category": "Men's cycling baselayers",
"variant": "white",
"list": "More Options",
"position": 1
}
,
{
"id": "47300",
"name": "Rapha Lightweight Sleeveless Cycling Baselayer",
"price": "67.0",
"brand": "Rapha",
"category": "Men's cycling baselayers",
"variant": "white",
"list": "More Options",
"position": 2
}
,
{
"id": "36583",
"name": "Endura Transloft Long Sleeve Cycling Baselayer",
"price": "64.99",
"brand": "Endura",
"category": "Men's cycling baselayers",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "36584",
"name": "Endura Translite Windproof Sleeveless Cycling Baselayer",
"price": "59.99",
"brand": "Endura",
"category": "Men's cycling baselayers",
"variant": "white",
"list": "More Options",
"position": 4
}
,
{
"id": "40203",
"name": "Endura Translite Short Sleeve Cycling Baselayer II",
"price": "44.99",
"brand": "Endura",
"category": "Men's cycling baselayers",
"variant": "white",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}