if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "42051",
"name": "Electra Ring Lock Adapter plates",
"price": "9.99",
"brand": "Electra",
"category": "Bike locks",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
]
}
});
} else {
console.log("dataLayer");
}