if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "41669",
"name": "Slash 9 GX AXS T-Type Gen 6",
"price": "4899.97",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41684",
"name": "Slash 9.8 GX AXS T-Type Gen 6",
"price": "7199.97",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37060",
"name": "Slash 9.9 XX1 Flight Attendant Gen 5",
"price": "7499.93",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35218",
"name": "Slash 9.9 XX1 AXS Gen 5",
"price": "6299.93",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36413",
"name": "Slash 9.9 XX1 AXS Flight Attendant Gen 5",
"price": "6299.93",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "37065",
"name": "Slash 9.9 XTR Gen 5",
"price": "5999.93",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "37058",
"name": "Slash 9.8 GX AXS Gen 5",
"price": "4299.93",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "yellow",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "36732",
"name": "Slash 9.8 XT Gen 5",
"price": "3999.93",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "35217",
"name": "Slash 9.8 GX AXS Gen 5",
"price": "3799.93",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "35068",
"name": "Slash 9.7 Gen 5",
"price": "3499.93",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "bluedark_black",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "35388",
"name": "Slash 9.8 XT Gen 5",
"price": "3499.93",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 11
}
,
{
"id": "35316",
"name": "Slash 9.8 GX Gen 5",
"price": "3299.93",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 12
}
,
{
"id": "36730",
"name": "Slash 7 Gen 5",
"price": "2499.93",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 13
}
]
}
});
} else {
console.log("dataLayer");
}