if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "40455",
"name": "Trek Fetch+ 4 Head Badge",
"price": "39.99",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "grey_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "32096",
"name": "Trek 2020 Top Fuel 29 Chainstay Logo Decal",
"price": "19.99",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "14807",
"name": "Trek Shield Headbadge",
"price": "10.99",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "greylight",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "12711",
"name": "Electra Delivery 3i Tank Plate",
"price": "41.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "tan",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "22778",
"name": "Electra Cruiser Lux Ad Panels",
"price": "33.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "white_black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "34817",
"name": "Electra Headtube Badge",
"price": "10.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "45285",
"name": "Electra Ponto Go! Headbadge",
"price": "9.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "44283",
"name": "Electra Loft Go! Seat Tube Badge",
"price": "7.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "12591",
"name": "Electra Chainguard Badge",
"price": "6.5",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}