if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "36451",
"name": "Garmin Rally RK 0 Degree Replacement Cleat Set",
"price": "24.99",
"brand": "Garmin",
"category": "Bike pedals",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "10382",
"name": "VP Components A76CG 1-1/8˝ Headset",
"price": "17.99",
"brand": "VP Components",
"category": "Bike headsets",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "48305",
"name": "Tektro TR-52 6-Bolt Disc Brake Rotor",
"price": "16.99",
"brand": "Tektro",
"category": "Bike brakes, pads, & levers",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "35398",
"name": "RockShox Re:Aktiv Thru Shaft Bleed Plug Tool",
"price": "6.4",
"brand": "RockShox",
"category": "Bike tools & maintenance",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "37409",
"name": "Electra Tamper Resistant Monostay Bolt",
"price": "3.99",
"brand": "Electra",
"category": "E-bike accessories",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}