if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "34870",
"name": "Being Gary Fisher and the Bicycle Revolution Autobiography",
"price": "40.0",
"brand": "Trek",
"category": "Cycling gifts & fun stuff",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
]
}
});
} else {
console.log("dataLayer");
}