1/** 2 * UTMãã©ã¡ã¼ã¿ã»æµå ¥ãã¼ã¸ãWPFormsã®é ããã£ã¼ã«ãã«èªåå ¥åããã 3 * 4 * v1.2.0ï¼2026-10-02ï¼: ãã©ã¼ã IDãã¨ã®ããããèªãããã«ããã 5 * v1.1.0 ã¯ã°ãã¼ãã«ã«1çµã®IDããæã¦ãªãã£ããããã£ã¼ã«ãIDã¯ãã©ã¼ã ãã¨ã«éã 6 * ï¼å®æ¸¬ã§9ãã©ã¼ã ã0ã16ã¾ã§ã°ãã°ãï¼ã1æ¬ã®ãããã§å ¨ãã©ã¼ã ãåããã¨ã 7 * å¥ãã©ã¼ã ã®åãçªå·ã®ãã£ã¼ã«ãï¼æ°åãé»è©±ï¼ã¸æ¸ãè¾¼ãã§ãã¾ãã 8 * 9 * - landing_page ã¯ãã»ãã·ã§ã³å ã§æåã«çå°ããURLããsessionStorageã«ä¿åãã¦ä½¿ã 10 * - utm_source / utm_medium / utm_campaign ã¯ç¾å¨ã®URLã®ã¯ã¨ãªããåã 11 * 12 * åæ: 13 * window.NOCODE_UTM_FIELD_IDS_BY_FORM = { "398": { landing_page: 14 }, "5880": { landing_page: 12 } } 14 * ã <script> ã§å ã«æ³¨å ¥ããã¦ãããã¨ï¼mu-plugin ã® wp_add_inline_script ãåºåï¼ã 15 * ãããã«ç¡ããã©ã¼ã ã«ã¯ä¸å触ããªãã 16 */ 17(function () { 18 var MAP = window.NOCODE_UTM_FIELD_IDS_BY_FORM; 19 if (!MAP || typeof MAP !== 'object') return; 20 21 var params = new URLSearchParams(location.search); 22 23 // ã»ãã·ã§ã³ã§æåã«çå°ããURLãä¿æããã2ãã¼ã¸ç®ä»¥éã¯ä¸æ¸ãããªã 24 try { 25 if (!sessionStorage.getItem('nocode_landing')) { 26 sessionStorage.setItem('nocode_landing', location.href); 27 } 28 } catch (e) { 29 // ãã©ã¤ãã¼ãã¦ã£ã³ãã¦çã§sessionStorageã使ããªããã¨ãããã 30 // ãã®å ´åã¯ç¾å¨ã®URLã§ä»£ç¨ããï¼ç©ºã§éãããæããããæ®ãï¼ 31 } 32 33 function landing() { 34 try { 35 return sessionStorage.getItem('nocode_landing') || location.href; 36 } catch (e) { 37 return location.href; 38 } 39 } 40 41 function valueFor(key) { 42 if (key === 'landing_page') return landing(); 43 return params.get(key) || ''; 44 } 45 46 function fillAll() { 47 Object.keys(MAP).forEach(function (formId) { 48 // WPFormsã®DOM: <form id="wpforms-form-398"> ããã©ã¼ã ã®ä¸ã ãã触ã 49 var form = document.getElementById('wpforms-form-' + formId); 50 if (!form) return; 51 var ids = MAP[formId] || {}; 52 Object.keys(ids).forEach(function (key) { 53 var fid = ids[key]; 54 if (fid === null || fid === undefined) return; 55 var val = valueFor(key); 56 if (!val) return; 57 var inputs = form.querySelectorAll('input[name="wpforms[fields][' + fid + ']"]'); 58 for (var i = 0; i < inputs.length; i++) { 59 if (!inputs[i].value) inputs[i].value = val; 60 } 61 }); 62 }); 63 } 64 65 if (document.readyState === 'loading') { 66 document.addEventListener('DOMContentLoaded', fillAll); 67 } else { 68 fillAll(); 69 } 70 71 // WPFormsãAjaxã§ãã©ã¼ã ãå¾ããå·®ãè¾¼ãã±ã¼ã¹ã®ãã©ã¼ã«ãã㯠72 setTimeout(fillAll, 800); 73})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.