if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "32311",
"name": "Trek Sticker",
"price": "8.99",
"brand": "Trek",
"category": "Cycling gifts & fun stuff",
"variant": "white_red",
"list": "CATEGORY",
"position": 1
}
]
}
});
} else {
console.log("dataLayer");
}