if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "31532",
"name": "Herrmans Slim Bosch G4 Chainguard Bracket",
"price": "8.5",
"brand": "HERRMANS",
"category": "Bike frame protection",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "45456",
"name": "Electra Ponto Go! Downtube Bumper",
"price": "6.49",
"brand": "Electra",
"category": "Bike frame protection",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "31528",
"name": "Trek Allant+ & Diamant Zouma+ Skidplate Motor Armor",
"price": "2.5",
"brand": "Trek-Diamant",
"category": "Bike frame protection",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}