Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "12598",
"name": "Electra Bicycle Cover",
"price": "49.99",
"brand": "Electra",
"category": "Bike storage",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "40278",
"name": "Electra Classic Faux Leather Bike Carry Handle",
"price": "29.93",
"brand": "Electra",
"category": "Bike storage",
"variant": "black",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}