Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "14202",
"name": "Bar Mitts Mountain Extreme",
"price": "125.0",
"brand": "Bar Mitts",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "40644",
"name": "Wolf Tooth Singletrack Pogie V2",
"price": "119.95",
"brand": "Wolf Tooth Components",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "28066",
"name": "Bar Mitts Dual Position Road",
"price": "74.95",
"brand": "Bar Mitts",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "14203",
"name": "Bar Mitts Road",
"price": "74.95",
"brand": "Bar Mitts",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "13349",
"name": "Bar Mitts Mountain",
"price": "74.95",
"brand": "Bar Mitts",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}