if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "35041",
"name": "Trek RSL Mountain Bike Shoe",
"price": "700.0",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "45272",
"name": "Trek Foray Mountain Bike Shoe",
"price": "320.0",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "25343",
"name": "Bontrager XXX Mountain Bike Shoes",
"price": "600.0",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "34130",
"name": "Bontrager Foray Mountain Bike Shoes",
"price": "250.0",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "24883",
"name": "Bontrager Rally Mountain Bike Shoes",
"price": "240.0",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "34790",
"name": "Bontrager Flatline Mountain Bike Shoes",
"price": "240.0",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "34129",
"name": "Bontrager Evoke Mountain Bike Shoes",
"price": "200.0",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "34789",
"name": "Bontrager Quantum Mountain Bike Shoes",
"price": "170.0",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}