if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "37599",
"name": "Trek Checkpoint SL & SLR Gen 2 Chainstay Armor",
"price": "10.99",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "42050",
"name": "Trek Checkpoint SLR/SL Stainless Chainstay Strike Guard",
"price": "9.99",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "42147",
"name": "RideWrap Gloss Covered Frame Protection Kit designed to fit 2022 Trek Gravel/CX",
"price": "70.0",
"brand": "RideWrap",
"category": "Bike frame protection",
"variant": "white",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "42148",
"name": "RideWrap Matte Covered Frame Protection Kit designed to fit 2022 Trek Gravel/CX",
"price": "70.0",
"brand": "RideWrap",
"category": "Bike frame protection",
"variant": "white",
"list": "PRODUCTSEARCH",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}