if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "37985",
"name": "Bontrager Aeolus RSL TLR Road Tyre",
"price": "159.99",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black_tan",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "25926",
"name": "Bontrager R3 Hard-Case Lite TLR Road Tyre",
"price": "119.99",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "23611",
"name": "Bontrager GR2 Team Issue Gravel Tyre",
"price": "99.99",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "24706",
"name": "Bontrager GR1 Team Issue Gravel Tyre",
"price": "99.99",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "48770",
"name": "Pirelli P Zero TLR RS Road Bike Tyre",
"price": "159.99",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "38184",
"name": "Pirelli P ZERO Race TLR Road Tyre",
"price": "149.99",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "brown_black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "38203",
"name": "Pirelli Cinturato Velo TLR Road Tyre",
"price": "125.99",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}