if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "THB",
"impressions": [
{
"id": "37704",
"name": "โช้คหน้า Suntour Mobie 20˝ 70 มม. สำหรับจักรยานคาร์โก้",
"price": "10575.0",
"brand": "SR SUNTOUR",
"category": "Bike forks",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "44749",
"name": "Schwalbe Pick-Up ยางรถจักรยาน 20 นิ้ว",
"price": "3250.0",
"brand": "Schwalbe",
"category": "Bike tires",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "33881",
"name": "ตัวโม่ Bontrager Race 11-Speed",
"price": "2175.0",
"brand": "Bontrager",
"category": "Bike hubs & hub parts",
"variant": "",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "45151",
"name": "สไปเดอร์ Praxis 1X SRAM สำหรับ Domane+ SLR",
"price": "1975.0",
"brand": "Praxis",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "33877",
"name": "Bontrager Approved TK-32 ตัวฟรีฮับ 11 สปีด",
"price": "1100.0",
"brand": "Bontrager",
"category": "Bike hubs & hub parts",
"variant": "",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "40418",
"name": "ชุดตาไก่และเดือยสายเบรกไฮดรอลิก C-Star - แพ็ก 10 ชิ้น",
"price": "900.0",
"brand": "C-Star",
"category": "Bike brakes, pads, & levers",
"variant": "gold",
"list": "PRODUCTSEARCH",
"position": 6
}
,
{
"id": "40919",
"name": "ชุดเบรก ตาไก่และเข็มท่อเบรก Tektro Dorado Auriga Comp Draco - ชุด 10 ชิ้น",
"price": "800.0",
"brand": "Tektro",
"category": "Bike brakes, pads, & levers",
"variant": "grey",
"list": "PRODUCTSEARCH",
"position": 7
}
,
{
"id": "34283",
"name": "แหวนรองคอคาร์บอน Bontrager 10 มม. - แพ็ก 3 ชิ้น",
"price": "750.0",
"brand": "Bontrager",
"category": "Bike headsets",
"variant": "greydark",
"list": "PRODUCTSEARCH",
"position": 8
}
,
{
"id": "34281",
"name": "Bontrager 10 มม. อลูมิเนียม หัวชุดแฮนด์ สเปเซอร์ - 3 ชิ้น",
"price": "400.0",
"brand": "Bontrager",
"category": "Bike headsets",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 9
}
,
{
"id": "32116",
"name": "Tektro Hydraulic Brake Olive and Barb Hose Fittings - 10 Pack",
"price": "400.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "gold",
"list": "PRODUCTSEARCH",
"position": 10
}
,
{
"id": "48305",
"name": "Tektro TR-52 6-Bolt Disc Brake Rotor",
"price": "375.0",
"brand": "Tektro",
"category": "Bike brakes, pads, & levers",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 11
}
,
{
"id": "33275",
"name": "Tektro L10.11 Disc Brake Pads",
"price": "350.0",
"brand": "Tektro",
"category": "Bike brakes, pads, & levers",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 12
}
,
{
"id": "44822",
"name": "สปันนิงา พิเมนโต้ RR 02 ไฟท้ายสะท้อนแสง",
"price": "325.0",
"brand": "Spanninga",
"category": "Bike lights",
"variant": "reddark",
"list": "PRODUCTSEARCH",
"position": 13
}
,
{
"id": "10382",
"name": "VP Components A76CG 1-1/8˝ Headset",
"price": "325.0",
"brand": "VP Components",
"category": "Bike headsets",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 14
}
]
}
});
} else {
console.log("dataLayer");
}