Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "45455",
"name": "Electra Ponto Go! Stem Cover",
"price": "12.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "45457",
"name": "Electra Ponto Go! Seatstay Cable Cover",
"price": "2.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "black",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}