if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "14564",
"name": "Electra Sticker Pack",
"price": "9.99",
"brand": "Electra",
"category": "Cycling gifts & fun stuff",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "12653",
"name": "Electra Bugle Horn",
"price": "7.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "pink",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "14477",
"name": "Electra Color Ringer Bike Bell",
"price": "5.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "34405",
"name": "Electra Solid Color Forward Twister Bike Bell",
"price": "4.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "tan",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}