if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "41014",
"name": "Wahoo 20 Trail",
"price": "649.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greenvisibility",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36268",
"name": "Precaliber 20 7-speed",
"price": "399.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36607",
"name": "Sprocket 1 20"",
"price": "389.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35411",
"name": "EBC 3000 Sprocket 20"",
"price": "349.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "greylight",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35410",
"name": "Cat's Meow Sprocket 20"",
"price": "349.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "white",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36270",
"name": "Precaliber 20",
"price": "329.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}