Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "44687",
"name": "Electra Loft Go! 7D Fender Hardware Kit",
"price": "12.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "greylight",
"list": "More Options",
"position": 1
}
,
{
"id": "37593",
"name": "Electra Townie Go! 7D & Cruiser Go! Fender Hardware Kit",
"price": "11.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "greylight",
"list": "More Options",
"position": 2
}
,
{
"id": "32653",
"name": "Electra Vale Go! Front Fender Hardware",
"price": "8.5",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "greylight",
"list": "More Options",
"position": 3
}
,
{
"id": "44700",
"name": "Electra Townie Path Go! Fork/Fender Shim",
"price": "6.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "45070",
"name": "Electra Ponto Go! Fender Spacer",
"price": "2.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "45063",
"name": "Electra Ponto Go! Rear Fender Cable Grommet",
"price": "2.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}