Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "36232",
"name": "Electra Tandem Stoker Stem",
"price": "69.99",
"brand": "Electra",
"category": "Bike stems & accessories",
"variant": "greylight",
"list": "More Options",
"position": 1
}
,
{
"id": "44810",
"name": "Electra Ponto Go! Threadless Stem",
"price": "35.99",
"brand": "Electra",
"category": "Bike stems & accessories",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "37594",
"name": "Electra Kids' Quill Stem",
"price": "23.99",
"brand": "Electra",
"category": "Bike stems & accessories",
"variant": "greylight",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}