if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "37056",
"name": "Session 8",
"price": "7899.0",
"brand": "Trek",
"category": "Downhill mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
]
}
});
} else {
console.log("dataLayer");
}