if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "48832",
"name": "Trek Line Pro MTB Grip Set",
"price": "34.99",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "tan",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "48831",
"name": "Trek Line Elite MTB Grip Set",
"price": "24.99",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "tan",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "45613",
"name": "ODI Vans Lock-On V2.1 Grip Set",
"price": "33.95",
"brand": "ODI",
"category": "Bike handlebar grips & tape",
"variant": "tan",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "13956",
"name": "ESI Chunky Silicone Grip Set",
"price": "20.99",
"brand": "ESI",
"category": "Bike handlebar grips & tape",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "34576",
"name": "ESI Plush Silicone Grip Set",
"price": "27.99",
"brand": "ESI",
"category": "Bike handlebar grips & tape",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}