if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "35411",
"name": "EBC 3000 Sprocket 20"",
"price": "349.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35410",
"name": "Cat's Meow Sprocket 20"",
"price": "349.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35412",
"name": "Tutti Frutti Sprocket 16"",
"price": "329.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "pinklight",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}