if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "35709",
"name": "Electra Retro Stripe Elastomer Saddle",
"price": "39.93",
"brand": "Electra",
"category": "Bike saddles",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36009",
"name": "Electra Retrostripe Bar End Mirror",
"price": "29.99",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35713",
"name": "Electra Retro Stripe Rubber Grips",
"price": "17.93",
"brand": "Electra",
"category": "Bike handlebar grips & tape",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}