{"id":7205,"date":"2024-12-26T23:12:16","date_gmt":"2024-12-26T14:12:16","guid":{"rendered":"https:\/\/code-plus.jp\/gp\/?p=7205"},"modified":"2026-03-16T10:36:09","modified_gmt":"2026-03-16T01:36:09","slug":"post-7205","status":"publish","type":"post","link":"https:\/\/code-plus.jp\/gp\/post-7205\/","title":{"rendered":"Air\u30ea\u30b6\u30fc\u30d6\u306eURL\u30d1\u30e9\u30e1\u30fc\u30bf\u304b\u3089\u4e88\u7d04\u7a2e\u5225\u3092\u5224\u5b9a\u3057\u3001\u4e88\u7d04\u7a2e\u5225\u3054\u3068\u306e\u8a08\u6e2c\u3092\u3059\u308b"},"content":{"rendered":"<h2>\u80cc\u666f\u3068\u76ee\u7684<\/h2>\r\n<p>Air\u30ea\u30b6\u30fc\u30d6\u3067\u306e\u4e88\u7d04\u30d5\u30ed\u30fc\u3067\u306f\u3001URL\u30d1\u30e9\u30e1\u30fc\u30bf<code>schdlId<\/code>\u3067\u4e88\u7d04\u7a2e\u5225\u3092\u533a\u5225\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5229\u7528\u3057\u3066\u3001\u4e88\u7d04\u7a2e\u5225\u3054\u3068\u306e\u8a08\u6e2c\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/p>\r\n<h2>\u5b9f\u88c5\u306e\u8ab2\u984c<\/h2>\r\n<ol style=\"list-style-type:decimal;\">\r\n<li>URL\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u5165\u308a\u53e3\u30da\u30fc\u30b8\u306b\u306e\u307f\u5b58\u5728<\/li>\r\n<li>\u4e88\u7d04\u30d5\u30ed\u30fc\u5168\u4f53\u3067\u4e88\u7d04\u7a2e\u5225\u3092\u7dad\u6301\u3059\u308b\u5fc5\u8981\u6027<\/li>\r\n<li>\u8907\u6570\u306e\u5206\u6790\u4f1a\u793e\u3067\u306e\u540c\u6642\u8a08\u6e2c\u3078\u306e\u5bfe\u5fdc<\/li>\r\n<\/ol>\r\n<h2>\u89e3\u6c7a\u7b56\uff1aJavaScript\u306b\u3088\u308b\u5b9f\u88c5<\/h2>\r\n<pre><code class=\"language-javascript\">\/\/airrsv_event_sender.js\r\n(function() {\r\n  function getReservationType() {\r\n    try {\r\n      \/\/URL\u30d1\u30e9\u30e1\u30fc\u30bf\u53d6\u5f97\r\n      var urlParams = new URLSearchParams(window.location.search);\r\n      var airsvId = urlParams.get(&#39;schdlId&#39;);\r\n      var airsvName;\r\n\r\n      if (airsvId) {\r\n        \/\/\u4e88\u7d04\u7a2e\u5225\u306e\u5224\u5b9a\r\n        switch (airsvId) {\r\n          case &#39;s0000KA554&#39;:\r\n            airsvName = &#39;kzinssie_guidance&#39;;\r\n            break;\r\n          case &#39;s0000KBSA7&#39;:\r\n            airsvName = &#39;kzinssie_onguide&#39;;\r\n            break;\r\n          \/\/... \u4ed6\u306e\u4e88\u7d04\u7a2e\u5225\r\n        }\r\n        \r\n        \/\/\u30bb\u30c3\u30b7\u30e7\u30f3\u30b9\u30c8\u30ec\u30fc\u30b8\u3078\u4fdd\u5b58\r\n        sessionStorage.setItem(&#39;st_airsvId&#39;, airsvId);\r\n        sessionStorage.setItem(&#39;st_airsvName&#39;, airsvName);\r\n      } else {\r\n        \/\/\u30bb\u30c3\u30b7\u30e7\u30f3\u30b9\u30c8\u30ec\u30fc\u30b8\u304b\u3089\u8aad\u307f\u53d6\u308a\r\n        airsvId = sessionStorage.getItem(&#39;st_airsvId&#39;);\r\n        airsvName = sessionStorage.getItem(&#39;st_airsvName&#39;);\r\n      }\r\n\r\n      \/\/GTM\u7528\u30c7\u30fc\u30bf\u9001\u4fe1\r\n      if (airsvId &amp;&amp; airsvName) {\r\n        window.dataLayer = window.dataLayer || [];\r\n        window.dataLayer.push({\r\n          &#39;event&#39;: &#39;airrsv_data_ready&#39;,\r\n          &#39;dat_airsvId&#39;: airsvId,\r\n          &#39;dat_airsvName&#39;: airsvName\r\n        });\r\n      }\r\n    } catch (error) {\r\n      console.log(&#39;Error:&#39;, error);\r\n    }\r\n  }\r\n\r\n  \/\/DOM\u8aad\u307f\u8fbc\u307f\u5b8c\u4e86\u6642\u306b\u5b9f\u884c\r\n  if (document.readyState === &#39;loading&#39;) {\r\n    document.addEventListener(&#39;DOMContentLoaded&#39;, getReservationType);\r\n  } else {\r\n    getReservationType();\r\n  }\r\n})();\r\n<\/code><\/pre>\r\n<h2>\u5b9f\u88c5\u306e\u30dd\u30a4\u30f3\u30c8<\/h2>\r\n<ol style=\"list-style-type:decimal;\">\r\n<li>\u30bb\u30c3\u30b7\u30e7\u30f3\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u6d3b\u7528<\/li>\r\n<\/ol>\r\n<ul style=\"list-style-type:bullet;\">\r\n<li>\u5165\u308a\u53e3\u30da\u30fc\u30b8\u3067\u4e88\u7d04\u7a2e\u5225\u3092\u5224\u5b9a<\/li>\r\n<li>\u30d5\u30a9\u30fc\u30e0\u5168\u4f53\u3067\u4e88\u7d04\u7a2e\u5225\u60c5\u5831\u3092\u7dad\u6301<\/li>\r\n<\/ul>\r\n<ol start=\"2\" style=\"list-style-type:decimal;\">\r\n<li>\u30c7\u30fc\u30bf\u30ec\u30a4\u30e4\u30fc\u9001\u4fe1<\/li>\r\n<\/ol>\r\n<ul style=\"list-style-type:bullet;\">\r\n<li>GTM\u7528\u306e\u30c7\u30fc\u30bf\u3092\u6a19\u6e96\u5f62\u5f0f\u3067\u9001\u4fe1<\/li>\r\n<li>\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\u3067\u767a\u706b\u30bf\u30a4\u30df\u30f3\u30b0\u3092\u5236\u5fa1<\/li>\r\n<\/ul>\r\n<ol start=\"3\" style=\"list-style-type:decimal;\">\r\n<li>\u6c4e\u7528\u6027\u306e\u78ba\u4fdd<\/li>\r\n<\/ol>\r\n<ul style=\"list-style-type:bullet;\">\r\n<li>\u6e2c\u5b9aID\u975e\u4f9d\u5b58\u306e\u5b9f\u88c5<\/li>\r\n<li>\u8907\u6570\u793e\u3067\u306e\u540c\u6642\u8a08\u6e2c\u306b\u5bfe\u5fdc<\/li>\r\n<\/ul>\r\n<h2>\u5c0e\u5165\u624b\u9806<\/h2>\r\n<ol style=\"list-style-type:decimal;\">\r\n<li>\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/li>\r\n<li>\u5168\u30da\u30fc\u30b8\u3078\u306e\u8a2d\u7f6e<\/li>\r\n<li>\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3067\u306e\u52d5\u4f5c\u78ba\u8a8d<\/li>\r\n<\/ol>\r\n<h1>\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u6a5f\u80fd\u3068\u5229\u70b9<\/h1>\r\n<h2>\u4e3b\u306a\u6a5f\u80fd<\/h2>\r\n<ul style=\"list-style-type:bullet;\">\r\n<li>\u4e88\u7d04\u7a2e\u5225\u306e\u5224\u5b9a\u3068\u4fdd\u6301<\/li>\r\n<li>\u5168\u30da\u30fc\u30b8\u3067\u306e\u30c7\u30fc\u30bf\u9001\u4fe1<\/li>\r\n<li>GTM\u3067\u306e\u8a08\u6e2c\u30c8\u30ea\u30ac\u30fc\u5236\u5fa1<\/li>\r\n<\/ul>\r\n<h2>\u5404\u793e\u3067\u306e\u8a08\u6e2c\u304c\u53ef\u80fd\u306a\u7406\u7531<\/h2>\r\n<ul style=\"list-style-type:bullet;\">\r\n<li>\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u6c4e\u7528\u7684\u306a\u5b9f\u88c5\uff08\u6e2c\u5b9aID\u975e\u4f9d\u5b58\uff09<\/li>\r\n<li>\u30c7\u30fc\u30bf\u30ec\u30a4\u30e4\u30fc\u3092\u4ecb\u3057\u305f\u6a19\u6e96\u7684\u306a\u30c7\u30fc\u30bf\u9001\u4fe1<\/li>\r\n<li>\u30bb\u30c3\u30b7\u30e7\u30f3\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u3088\u308b\u30c7\u30fc\u30bf\u7dad\u6301<\/li>\r\n<\/ul>\r\n<h2>\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\u306e\u5fc5\u8981\u6027<\/h2>\r\n<ol style=\"list-style-type:decimal;\">\r\n<li>\u767a\u706b\u30bf\u30a4\u30df\u30f3\u30b0\u306e\u5236\u5fa1<\/li>\r\n<\/ol>\r\n<ul style=\"list-style-type:bullet;\">\r\n<li>\u30da\u30fc\u30b8\u8aad\u307f\u8fbc\u307f\u6642\u306b\u306f\u4e88\u7d04\u7a2e\u5225\u304c\u672a\u78ba\u5b9a<\/li>\r\n<li>\u30c7\u30fc\u30bf\u6e96\u5099\u5b8c\u4e86\u5f8c\u306b\u6b63\u78ba\u306a\u5024\u3092\u9001\u4fe1<\/li>\r\n<\/ul>\r\n<ol start=\"2\" style=\"list-style-type:decimal;\">\r\n<li>\u8a08\u6e2c\u306e\u78ba\u5b9f\u6027<\/li>\r\n<\/ol>\r\n<ul style=\"list-style-type:bullet;\">\r\n<li>\u4e88\u7d04\u7a2e\u5225\u306e\u5224\u5b9a\u5b8c\u4e86\u3092\u78ba\u8a8d<\/li>\r\n<li>\u8aa4\u3063\u305f\u5024\u3067\u306e\u8a08\u6e2c\u3092\u9632\u6b62<\/li>\r\n<\/ul>\r\n<ol start=\"3\" style=\"list-style-type:decimal;\">\r\n<li>\u8907\u6570\u793e\u3067\u306e\u540c\u6642\u8a08\u6e2c<\/li>\r\n<\/ol>\r\n<ul style=\"list-style-type:bullet;\">\r\n<li>\u30a4\u30d9\u30f3\u30c8\u30d9\u30fc\u30b9\u3067\u500b\u5225\u306b\u30c8\u30ea\u30ac\u30fc\u5236\u5fa1<\/li>\r\n<li>\u5404\u793e\u306eGTM\u3067\u72ec\u7acb\u3057\u3066\u8a08\u6e2c\u8a2d\u5b9a\u304c\u53ef\u80fd<\/li>\r\n<\/ul>\r\n<p>\u3053\u306e\u5b9f\u88c5\u306b\u3088\u308a\u3001\u5404\u5206\u6790\u4f1a\u793e\u306f\u72ec\u81ea\u306eGTM\u30b3\u30f3\u30c6\u30ca\u3067\u4e88\u7d04\u7a2e\u5225\u3054\u3068\u306e\u8a08\u6e2c\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\r\n","protected":false},"excerpt":{"rendered":"\u80cc\u666f\u3068\u76ee\u7684 Air\u30ea\u30b6\u30fc\u30d6\u3067\u306e\u4e88\u7d04\u30d5\u30ed\u30fc\u3067\u306f\u3001URL\u30d1\u30e9\u30e1\u30fc\u30bfschdlId\u3067\u4e88\u7d04\u7a2e\u5225\u3092\u533a\u5225\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5229\u7528\u3057\u3066\u3001\u4e88\u7d04\u7a2e\u5225\u3054\u3068\u306e\u8a08\u6e2c\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002 \u5b9f\u88c5\u306e\u8ab2\u984c URL\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u5165\u308a\u53e3\u30da\u30fc\u30b8\u306b\u306e\u307f\u5b58\u5728 \u4e88[...]","protected":false},"author":1,"featured_media":7289,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","footnotes":"","vk-ltc-link":"","vk-ltc-target":"0"},"categories":[16],"tags":[],"class_list":["post-7205","post","type-post","status-publish","format-standard","has-post-thumbnail","category-analytic"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/7205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/comments?post=7205"}],"version-history":[{"count":0,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/7205\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/media\/7289"}],"wp:attachment":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/media?parent=7205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/categories?post=7205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/tags?post=7205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}