if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "48648",
"name": "Trek Lidl-Trek Helmet Decal Set",
"price": "14.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "28791",
"name": "Bontrager XXX WaveCel Trek-Segafredo Decal Set",
"price": "20.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black_white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "09577",
"name": "Bontrager Public Safety Services Helmet Stickers",
"price": "8.5",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}