if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "37874",
"name": "RockShox ZEB Front Fender",
"price": "21.0",
"brand": "RockShox",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37873",
"name": "RockShox MTB Fender",
"price": "12.8",
"brand": "RockShox",
"category": "Bike forks",
"variant": "black_white",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}