if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "41411",
"name": "Trek Pro BITS Multi-Tool",
"price": "79.99",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47358",
"name": "Trek Adventure Top Tube Bag",
"price": "54.99",
"brand": "Trek",
"category": "Bike bags",
"variant": "black_greylight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "63543",
"name": "Wahoo ELEMNT ROAM 3 GPS",
"price": "464.99",
"brand": "Wahoo",
"category": "Bike computers & GPS",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "77032",
"name": "Pirelli Cinturato GRAVEL Performance RM Gravel Tire",
"price": "94.9",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}