Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "33777",
"name": "Electra Charcoal Trunk Rear Rack Bag",
"price": "79.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "greydark",
"list": "More Options",
"position": 1
}
,
{
"id": "40322",
"name": "Electra Fern Rear Rack Trunk Bag",
"price": "79.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "greendark",
"list": "More Options",
"position": 2
}
,
{
"id": "47640",
"name": "Electra Front Tray / Rear Rack Bag",
"price": "69.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}