if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "44115",
"name": "Trek Solstice Asia Fit Mips Bike Helmet",
"price": "120.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41743",
"name": "Trek Circuit Waterproof Winter Cycling Gloves",
"price": "100.0",
"brand": "Trek",
"category": "Men's cycling gloves",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41744",
"name": "Trek Circuit Windshell Cycling Gloves",
"price": "80.0",
"brand": "Trek",
"category": "Men's cycling gloves",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "44116",
"name": "Trek Solstice Asia Fit Bike Helmet",
"price": "80.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37098",
"name": "Trek Circuit Full-Finger Twin Gel Unisex Cycling Glove",
"price": "70.0",
"brand": "Trek",
"category": "Full finger cycling gloves",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "37106",
"name": "Trek Evoke Unisex Mountain Bike Glove",
"price": "55.0",
"brand": "Trek",
"category": "Women's cycling gloves",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "41745",
"name": "Trek Circuit Thermal Cycling Gloves",
"price": "50.0",
"brand": "Trek",
"category": "Men's cycling gloves",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}