if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "21503",
"name": "Trek Kids' Handlebar Tassels",
"price": "4.99",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "pink",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "11155",
"name": "Bontrager Satellite Plus IsoZone Bar End Adapter",
"price": "15.99",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "10311",
"name": "Bontrager IsoZone Handlebar Plugs",
"price": "2.99",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35097",
"name": "Wolf Tooth Handlebar End Plugs",
"price": "2.95",
"brand": "Wolf Tooth Components",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}