if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "23683",
"name": "Electra ABUS Steel Chain Ring Lock Adapter",
"price": "34.99",
"brand": "Electra",
"category": "Bike locks",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "23684",
"name": "Electra ABUS Steel Chain Combo Lock",
"price": "24.99",
"brand": "Electra",
"category": "Bike locks",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "42051",
"name": "Electra Ring Lock Adapter plates",
"price": "5.99",
"brand": "Electra",
"category": "Bike locks",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}