if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "31487",
"name": "Electra Vale Go! RIB Battery Cover",
"price": "119.99",
"brand": "Electra",
"category": "E-bike batteries & parts",
"variant": "tan",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "34395",
"name": "Electra Townie Path Go! Battery Cover",
"price": "119.99",
"brand": "Electra",
"category": "E-bike batteries & parts",
"variant": "greendark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "27171",
"name": "Electra Cafe Moto Go! Battery Cover",
"price": "99.99",
"brand": "Electra",
"category": "E-bike batteries & parts",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "45337",
"name": "Electra Ponto Go! Battery Rail Spacer",
"price": "10.99",
"brand": "Electra",
"category": "E-bike batteries & parts",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36011",
"name": "Electra Bottom Monostay Plug",
"price": "3.99",
"brand": "Electra",
"category": "E-bike batteries & parts",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36010",
"name": "Electra Rear Monostay Plug",
"price": "3.99",
"brand": "Electra",
"category": "E-bike batteries & parts",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}