if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "44752",
"name": "Bontrager Vallnord RSL XR TLR MTB Tyre",
"price": "100.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44575",
"name": "Bontrager Sainte-Anne Pro XR TLR MTB Tyre",
"price": "80.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34496",
"name": "Bontrager XR5 Team Issue TLR MTB Tyre",
"price": "110.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "27917",
"name": "Bontrager XR3 Team Issue TLR MTB Tyre",
"price": "80.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "34495",
"name": "Bontrager XR1 Team Issue TLR MTB Tyre",
"price": "80.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "11640",
"name": "Bontrager XR3 Team Issue TLR Legacy Tread MTB Tyre",
"price": "70.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "11866",
"name": "Bontrager XR2 Team Issue TLR MTB Tyre",
"price": "70.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}