if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "14807",
"name": "Trek Head Badges",
"price": "23.99",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "22778",
"name": "Electra Cruiser Lux Ad Panels",
"price": "98.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "white_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "12711",
"name": "Electra Delivery 3i Tank Plate",
"price": "93.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "tan",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "12591",
"name": "Electra Chainguard Badge",
"price": "10.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}