if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "59872",
"name": "Roscoe 8 Gen 4",
"price": "2399.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36792",
"name": "Rail 7 Gen 3",
"price": "3999.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "purpledark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "58145",
"name": "Cruiser 1 Step-Thru",
"price": "449.99",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "yellow",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "58144",
"name": "Cruiser 1 Step-Over",
"price": "449.99",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "32732",
"name": "Verve 3 Disc Lowstep Gen 4",
"price": "449.93",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "purple",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35003",
"name": "FX 2 Disc Gen 3",
"price": "449.93",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "32734",
"name": "Verve 2 Disc Lowstep Gen 4",
"price": "349.93",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "red",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "16810",
"name": "Loft 7D Step-Thru",
"price": "399.93",
"brand": "Electra",
"category": "Loft",
"variant": "red",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "16717",
"name": "Loft 7D Step-Over",
"price": "399.93",
"brand": "Electra",
"category": "Loft",
"variant": "black",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "35578",
"name": "Cruiser 1 Step-Over",
"price": "339.93",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "35597",
"name": "Cruiser 1 Step-Thru",
"price": "339.93",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "orangelight",
"list": "CATEGORY",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}