if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "21482",
"name": "Bontrager Town Stormshell Light Strip",
"price": "10.99",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black_white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "27226",
"name": "Nite Ize See'Em Mini LED Spoke Lights",
"price": "16.49",
"brand": "Nite Ize",
"category": "Bike lights",
"variant": "red_green",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}