if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "36605",
"name": "Sprocket 1 16"",
"price": "499.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "yellow",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35413",
"name": "Super Sprocket 16"",
"price": "459.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47937",
"name": "Townie Go! 7D EQ Step-Over",
"price": "2429.99",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "47938",
"name": "Townie Go! 7D EQ Step-Thru",
"price": "2429.99",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "26947",
"name": "Step-Over Townie Path Go! 10D",
"price": "4249.99",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "23081",
"name": "Sprocket 1 16" Boys'",
"price": "384.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "23094",
"name": "Sprocket 1 16" Girls'",
"price": "384.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "green",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}