if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "26542",
"name": "Trek 520 700c Disc Fork",
"price": "149.99",
"brand": "Trek",
"category": "Bike forks",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "36262",
"name": "SRAM XX1 Eagle AXS 1x12 Upgrade Kit w/Rocker Paddle",
"price": "1055.0",
"brand": "SRAM",
"category": "Bike groupsets & build kits",
"variant": "",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "44592",
"name": "SRAM X0 Eagle T-Type 12-Speed Cassette",
"price": "400.0",
"brand": "SRAM",
"category": "Bike cassettes & freewheels",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "44590",
"name": "SRAM XX SL Eagle T-Type 12-Speed Cassette",
"price": "600.0",
"brand": "SRAM",
"category": "Bike cassettes & freewheels",
"variant": "black_greylight",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "44591",
"name": "SRAM XX Eagle T-Type 12-Speed Cassette",
"price": "550.0",
"brand": "SRAM",
"category": "Bike cassettes & freewheels",
"variant": "black_greylight",
"list": "PRODUCTSEARCH",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}