Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "27172",
"name": "Electra Cafe Moto Go! Saddle Light Bracket",
"price": "16.99",
"brand": "Electra",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "45287",
"name": "Electra Ponto Go! Turn Signal Switch",
"price": "11.99",
"brand": "Electra",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "41839",
"name": "Electra Townie 7D Fender Hardware Set",
"price": "7.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "greylight",
"list": "More Options",
"position": 3
}
,
{
"id": "42250",
"name": "Electra PVC Light Wire Sleeve",
"price": "2.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}