{"id":1981,"date":"2026-01-14T11:53:08","date_gmt":"2026-01-14T04:53:08","guid":{"rendered":"https:\/\/gunbangkok.com\/?page_id=1981"},"modified":"2026-01-14T11:53:08","modified_gmt":"2026-01-14T04:53:08","slug":"tracking","status":"publish","type":"page","link":"https:\/\/gunbangkok.com\/en\/tracking\/","title":{"rendered":"tracking"},"content":{"rendered":"<div class=\"gbk-track\">\n    <form id=\"gbkTrackForm\" action=\"\">\n      <label style=\"display:block;margin-bottom:6px;\">\u0e40\u0e1a\u0e2d\u0e23\u0e4c\u0e42\u0e17\u0e23\u0e28\u0e31\u0e1e\u0e17\u0e4c<\/label>\n      <input type=\"text\" id=\"gbk_phone\" placeholder=\"09xxxxxxxx\" required\n style=\"padding:10px;width:260px;max-width:100%;margin-right:8px;\">\n      <button type=\"submit\" style=\"padding:10px 14px;\">\u0e40\u0e0a\u0e47\u0e04\u0e2a\u0e16\u0e32\u0e19\u0e30<\/button>\n    <input type=\"hidden\" name=\"trp-form-language\" value=\"en\"\/><\/form>\n\n    <div id=\"gbk_result\" style=\"margin-top:14px;\"><\/div>\n  <\/div>\n\n  <script>\n  (function(){\n    const form = document.getElementById('gbkTrackForm');\n    const result = document.getElementById('gbk_result');\n\n    form.addEventListener('submit', async (e) => {\n      e.preventDefault();\n      result.textContent = \"\u0e01\u0e33\u0e25\u0e31\u0e07\u0e04\u0e49\u0e19\u0e2b\u0e32...\";\n\n      const phone = document.getElementById('gbk_phone').value.replace(\/\\D\/g,'');\n      if(!phone || phone.length < 9){\n        result.textContent = \"\u0e01\u0e23\u0e2d\u0e01\u0e40\u0e1a\u0e2d\u0e23\u0e4c\u0e43\u0e2b\u0e49\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07\";\n        return;\n      }\n\n      const apiUrl = \"https:\/\/script.google.com\/macros\/s\/AKfycbydQ0tMdiOEBqtoy9hNXKBeVJZkVW7NLfm7Oiy0XXyOrZjXsqUuhjvvB_2iUQih4pPv\/exec\"\n        + \"?phone=\" + encodeURIComponent(phone);\n\n      try{\n        const res = await fetch(apiUrl);\n        const data = await res.json();\n\n        if(!data.ok){\n          if(data.error === \"rate_limited\") result.textContent = \"\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e16\u0e35\u0e48\u0e40\u0e01\u0e34\u0e19\u0e44\u0e1b \u0e25\u0e2d\u0e07\u0e43\u0e2b\u0e21\u0e48\u0e2d\u0e35\u0e01\u0e2a\u0e31\u0e01\u0e04\u0e23\u0e39\u0e48\";\n          else result.textContent = \"\u0e44\u0e21\u0e48\u0e1e\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\";\n          return;\n        }\n\n        if(data.count === 0){\n          result.textContent = \"\u0e44\u0e21\u0e48\u0e1e\u0e1a\u0e2d\u0e2d\u0e40\u0e14\u0e2d\u0e23\u0e4c\u0e02\u0e2d\u0e07\u0e40\u0e1a\u0e2d\u0e23\u0e4c\u0e19\u0e35\u0e49\";\n          return;\n        }\n\n        const rows = data.results.map(r => `\n          <tr>\n            <td>${esc(r.order_date || \"\")}<\/td>\n            <td>${esc(r.status || \"\")}<\/td>\n            <td>${esc(r.carrier || \"-\")}<\/td>\n            <td>${esc(r.tracking || \"-\")}<\/td>\n          <\/tr>\n        `).join(\"\");\n\n        result.innerHTML = `\n          <table border=\"1\" cellpadding=\"8\" cellspacing=\"0\" style=\"border-collapse:collapse;width:100%;max-width:720px;\">\n            <thead>\n              <tr>\n                <th>\u0e27\u0e31\u0e19\u0e17\u0e35\u0e48\u0e2a\u0e31\u0e48\u0e07<\/th>\n                <th>\u0e2a\u0e16\u0e32\u0e19\u0e30<\/th>\n                <th>\u0e1a\u0e23\u0e34\u0e29\u0e31\u0e17\u0e02\u0e19\u0e2a\u0e48\u0e07<\/th>\n                <th>\u0e40\u0e25\u0e02\u0e1e\u0e31\u0e2a\u0e14\u0e38<\/th>\n              <\/tr>\n            <\/thead>\n            <tbody>${rows}<\/tbody>\n          <\/table>\n        `;\n      }catch(err){\n        result.textContent = \"\u0e23\u0e30\u0e1a\u0e1a\u0e02\u0e31\u0e14\u0e02\u0e49\u0e2d\u0e07 \u0e25\u0e2d\u0e07\u0e43\u0e2b\u0e21\u0e48\u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07\";\n      }\n    });\n\n    function esc(str){\n      return String(str).replace(\/[&<>\"']\/g, s => ({\n        '&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;',\"'\":'&#039;'\n      }[s]));\n    }\n  })();\n  <\/script>","protected":false},"excerpt":{"rendered":"","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1981","page","type-page","status-publish","hentry"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>tracking - GUN BANGKOK<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gunbangkok.com\/en\/tracking\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"tracking - GUN BANGKOK\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gunbangkok.com\/en\/tracking\/\" \/>\n<meta property=\"og:site_name\" content=\"GUN BANGKOK\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/gunbangkok.com\/tracking\/\",\"url\":\"https:\/\/gunbangkok.com\/tracking\/\",\"name\":\"tracking - GUN BANGKOK\",\"isPartOf\":{\"@id\":\"https:\/\/gunbangkok.com\/#website\"},\"datePublished\":\"2026-01-14T04:53:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/gunbangkok.com\/tracking\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/gunbangkok.com\/tracking\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/gunbangkok.com\/tracking\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/gunbangkok.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"tracking\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/gunbangkok.com\/#website\",\"url\":\"https:\/\/gunbangkok.com\/\",\"name\":\"GUN BANGKOK\",\"description\":\"\u0e1c\u0e39\u0e49\u0e1c\u0e25\u0e34\u0e15\u0e41\u0e25\u0e30\u0e08\u0e33\u0e2b\u0e19\u0e48\u0e32\u0e22\u0e0b\u0e2d\u0e07 KYDEX \u0e07\u0e32\u0e19 Hand made 100% Made in Thailand\",\"publisher\":{\"@id\":\"https:\/\/gunbangkok.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/gunbangkok.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/gunbangkok.com\/#organization\",\"name\":\"GUN BANGKOK\",\"url\":\"https:\/\/gunbangkok.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/gunbangkok.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/gunbangkok.com\/wp-content\/uploads\/2025\/06\/Gun-bangkok.png\",\"contentUrl\":\"https:\/\/gunbangkok.com\/wp-content\/uploads\/2025\/06\/Gun-bangkok.png\",\"width\":1658,\"height\":402,\"caption\":\"GUN BANGKOK\"},\"image\":{\"@id\":\"https:\/\/gunbangkok.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"tracking - GUN BANGKOK","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gunbangkok.com\/en\/tracking\/","og_locale":"en_GB","og_type":"article","og_title":"tracking - GUN BANGKOK","og_url":"https:\/\/gunbangkok.com\/en\/tracking\/","og_site_name":"GUN BANGKOK","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/gunbangkok.com\/tracking\/","url":"https:\/\/gunbangkok.com\/tracking\/","name":"tracking - GUN BANGKOK","isPartOf":{"@id":"https:\/\/gunbangkok.com\/#website"},"datePublished":"2026-01-14T04:53:08+00:00","breadcrumb":{"@id":"https:\/\/gunbangkok.com\/tracking\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gunbangkok.com\/tracking\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gunbangkok.com\/tracking\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gunbangkok.com\/"},{"@type":"ListItem","position":2,"name":"tracking"}]},{"@type":"WebSite","@id":"https:\/\/gunbangkok.com\/#website","url":"https:\/\/gunbangkok.com\/","name":"GUN BANGKOK","description":"\u0e1c\u0e39\u0e49\u0e1c\u0e25\u0e34\u0e15\u0e41\u0e25\u0e30\u0e08\u0e33\u0e2b\u0e19\u0e48\u0e32\u0e22\u0e0b\u0e2d\u0e07 KYDEX \u0e07\u0e32\u0e19 Hand made 100% Made in Thailand","publisher":{"@id":"https:\/\/gunbangkok.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gunbangkok.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/gunbangkok.com\/#organization","name":"GUN BANGKOK","url":"https:\/\/gunbangkok.com\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/gunbangkok.com\/#\/schema\/logo\/image\/","url":"https:\/\/gunbangkok.com\/wp-content\/uploads\/2025\/06\/Gun-bangkok.png","contentUrl":"https:\/\/gunbangkok.com\/wp-content\/uploads\/2025\/06\/Gun-bangkok.png","width":1658,"height":402,"caption":"GUN BANGKOK"},"image":{"@id":"https:\/\/gunbangkok.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/gunbangkok.com\/en\/wp-json\/wp\/v2\/pages\/1981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gunbangkok.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/gunbangkok.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/gunbangkok.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/gunbangkok.com\/en\/wp-json\/wp\/v2\/comments?post=1981"}],"version-history":[{"count":4,"href":"https:\/\/gunbangkok.com\/en\/wp-json\/wp\/v2\/pages\/1981\/revisions"}],"predecessor-version":[{"id":1985,"href":"https:\/\/gunbangkok.com\/en\/wp-json\/wp\/v2\/pages\/1981\/revisions\/1985"}],"wp:attachment":[{"href":"https:\/\/gunbangkok.com\/en\/wp-json\/wp\/v2\/media?parent=1981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}