if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "40762",
"name": "PEARL iZUMi Elite Gel Cycling Glove",
"price": "20.0",
"brand": "PEARL iZUMi",
"category": "Fingerless cycling gloves",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40763",
"name": "PEARL iZUMi Women's Elite Gel Glove",
"price": "14.0",
"brand": "PEARL iZUMi",
"category": "Fingerless cycling gloves",
"variant": "redlight",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}