Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "32042",
"name": "Electra Hydrive E-bike Chainring",
"price": "52.99",
"brand": "Electra",
"category": "E-bike drivetrain parts",
"variant": "greylight",
"list": "More Options",
"position": 1
}
,
{
"id": "12801",
"name": "Electra Single Chainring for 1-Piece Crank",
"price": "39.99",
"brand": "Electra",
"category": "Bike cranks & chainrings",
"variant": "greylight",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}