if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "13534",
"name": "Electra Linear Cup Holder",
"price": "15.93",
"brand": "Electra",
"category": "Bike water bottles & cages",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44446",
"name": "Trek Ion 50 R Front Bike Light",
"price": "21.99",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "45031",
"name": "CamelBak Podium 24oz Water Bottle",
"price": "14.0",
"brand": "CamelBak",
"category": "Bike water bottles & cages",
"variant": "greydark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "33422",
"name": "CamelBak Podium 21oz Water Bottle",
"price": "13.0",
"brand": "CamelBak",
"category": "Bike water bottles & cages",
"variant": "greydark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "45523",
"name": "Electra Plasket Basket",
"price": "18.93",
"brand": "Electra",
"category": "Bike baskets",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "34483",
"name": "Electra Gnome Ringer Bike Bell",
"price": "15.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "33774",
"name": "Electra Leopard Saddle Bag",
"price": "3.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "white_purplelight",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "35898",
"name": "Electra Ziggy Saddle Bag",
"price": "3.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "brown_blue",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}