if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "THB",
"impressions": [
{
"id": "48435",
"name": "รองเท้าเสือหมอบ Trek Velocis",
"price": "15000.0",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "45272",
"name": "รองเท้าเสือภูเขา Trek Foray",
"price": "9500.0",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "45274",
"name": "รองเท้าเสือหมอบ Trek Circuit",
"price": "7500.0",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "white_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36036",
"name": "รองเท้าขี่จักรยาน Trek RSL Knit",
"price": "25000.0",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "black_greydark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35040",
"name": "รองเท้าขี่จักรยาน Trek RSL Road Cycling Shoe",
"price": "17000.0",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "white_greylight",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "34133",
"name": "Trek Velocis Road Cycling Shoe",
"price": "15000.0",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "white",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "34588",
"name": "หมวกนิรภัย Trek Velocis Mips",
"price": "10500.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "44093",
"name": "หมวกกันน็อค Trek Velocis Mips Asia Fit",
"price": "10500.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "44661",
"name": "หมวกนิรภัยจักรยาน Trek Ballista Mips Asia Fit Road",
"price": "8500.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "37123",
"name": "หมวกกันน็อกเสือหมอบ Trek Ballista Mips",
"price": "7900.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "40249",
"name": "หมวกกันน็อก Trek Circuit WaveCel",
"price": "5500.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "black_purple",
"list": "CATEGORY",
"position": 11
}
,
{
"id": "32745",
"name": "กางเกงปั่นจักรยานผู้หญิง Trek Circuit",
"price": "3900.0",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 12
}
,
{
"id": "34652",
"name": "เสื้อปั่นจักรยานผู้หญิง Trek Circuit LTD",
"price": "3000.0",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "purpledark_pinklight",
"list": "CATEGORY",
"position": 13
}
,
{
"id": "44116",
"name": "หมวกกันน็อก Trek Solstice Asia Fit",
"price": "2100.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 14
}
,
{
"id": "37096",
"name": "ถุงมือปั่นจักรยาน Trek Velocis Dual Foam สำหรับทุกเพศ",
"price": "2000.0",
"brand": "Trek",
"category": "Fingerless cycling gloves",
"variant": "black",
"list": "CATEGORY",
"position": 15
}
,
{
"id": "37098",
"name": "ถุงมือปั่นจักรยานเต็มนิ้ว Trek Circuit Twin Gel Unisex",
"price": "1900.0",
"brand": "Trek",
"category": "Full finger cycling gloves",
"variant": "black",
"list": "CATEGORY",
"position": 16
}
,
{
"id": "37097",
"name": "Trek Circuit Twin Gel Unisex Cycling Glove",
"price": "1600.0",
"brand": "Trek",
"category": "Fingerless cycling gloves",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 17
}
]
}
});
} else {
console.log("dataLayer");
}