{"id":12193,"date":"2025-10-24T12:14:38","date_gmt":"2025-10-24T03:14:38","guid":{"rendered":"https:\/\/motenasu.info\/manual\/?p=12193"},"modified":"2025-12-02T16:51:32","modified_gmt":"2025-12-02T07:51:32","slug":"web%e8%a1%8c%e5%8b%95%e3%82%bf%e3%82%b0%e8%a8%ad%e7%bd%ae%ef%bc%88shopify%ef%bc%89","status":"publish","type":"post","link":"https:\/\/motenasu.info\/manual\/?p=12193","title":{"rendered":"WEB\u884c\u52d5\u30bf\u30b0\u8a2d\u7f6e\uff08Shopify\uff09"},"content":{"rendered":"<div class=\"methodWrap\" style=\"margin-bottom: 2.5rem; max-width: 100%; overflow-x: hidden;\">\n<h4 class=\"method\"><span class=\"methodNumber\">\u25bc<\/span><span class=\"methodTxt\">\u6982\u8981<\/span><\/h4>\n<div class=\"row mb-3\" style=\"max-width: 100%; margin: 0; overflow-x: hidden;\">\n<div class=\"col-md-12\" style=\"max-width: 100%; overflow-x: hidden;\">\n<p style=\"font-size: 1rem; line-height: 1.7; margin-bottom: 1rem;\">\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001Shopify\u30b9\u30c8\u30a2\u306bMOTENASU WEB\u884c\u52d5\u30bf\u30b0\u3092\u5b9f\u88c5\u3059\u308b\u624b\u9806\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h5 style=\"font-size: 1.15rem; font-weight: 600; margin: 1.2em 0 0.8em 0; color: #463d38;\">\u5b9f\u88c5\u3059\u308b\u6a5f\u80fd<\/h5>\n<ul>\n<li><strong style=\"color: #2c3e50; font-weight: 600;\">\u30da\u30fc\u30b8\u30d3\u30e5\u30fc\u81ea\u52d5\u8ffd\u8de1<\/strong><\/li>\n<li><strong style=\"color: #2c3e50; font-weight: 600;\">\u5546\u54c1\u8a73\u7d30\u30da\u30fc\u30b8\u95b2\u89a7\uff08view_item\uff09<\/strong><\/li>\n<li><strong style=\"color: #2c3e50; font-weight: 600;\">\u30ab\u30fc\u30c8\u8ffd\u52a0\uff08add_to_cart\uff09<\/strong><\/li>\n<li><strong style=\"color: #2c3e50; font-weight: 600;\">\u30ab\u30fc\u30c8\u524a\u9664\uff08remove_from_cart\uff09<\/strong><\/li>\n<li><strong style=\"color: #2c3e50; font-weight: 600;\">\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u958b\u59cb\uff08begin_checkout\uff09<\/strong><\/li>\n<li><strong style=\"color: #2c3e50; font-weight: 600;\">\u8cfc\u5165\u5b8c\u4e86\uff08purchase\uff09<\/strong><\/li>\n<li><strong style=\"color: #2c3e50; font-weight: 600;\">\u30ed\u30b0\u30a4\u30f3\u6e08\u307f\u30e6\u30fc\u30b6\u30fc\u306e\u8b58\u5225<\/strong><\/li>\n<li><strong style=\"color: #2c3e50; font-weight: 600;\">\u30d5\u30a1\u30a4\u30eb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30fb\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u306e\u81ea\u52d5\u8ffd\u8de1<\/strong><\/li>\n<\/ul>\n<h5 style=\"font-size: 1.15rem; font-weight: 600; margin: 1.2em 0 0.8em 0; color: #463d38;\">\u8a2d\u7f6e\u5834\u6240<\/h5>\n<table class=\"table table-bordered\" style=\"width: 100%; table-layout: fixed; word-wrap: break-word;\">\n<thead>\n<tr>\n<th>\u8a2d\u7f6e\u5834\u6240<\/th>\n<th>\u5b9f\u88c5\u5185\u5bb9<\/th>\n<th>\u5fc5\u9808\u5ea6<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>theme.liquid<\/td>\n<td>\u30e9\u30a4\u30d6\u30e9\u30ea\u8aad\u307f\u8fbc\u307f\u3001\u521d\u671f\u5316\u3001\u5404\u7a2e\u30a4\u30d9\u30f3\u30c8\u8ffd\u8de1<\/td>\n<td style=\"text-align: center;\"><span style=\"background: #dc3545; color: white; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: bold;\">\u5fc5\u9808<\/span><\/td>\n<\/tr>\n<tr>\n<td>\u30ab\u30b9\u30bf\u30de\u30fc\u30a4\u30d9\u30f3\u30c8<\/td>\n<td>\u8cfc\u5165\u5b8c\u4e86\uff08checkout_completed\uff09\u8ffd\u8de1<\/td>\n<td style=\"text-align: center;\"><span style=\"background: #dc3545; color: white; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: bold;\">\u5fc5\u9808<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"methodWrap\" style=\"margin-bottom: 2.5rem; max-width: 100%; overflow-x: hidden;\">\n<h4 class=\"method\"><span class=\"methodNumber\">\u25bc<\/span><span class=\"methodTxt\">\u8a2d\u7f6e\u524d\u306e\u6e96\u5099<\/span><\/h4>\n<div class=\"row mb-3\" style=\"max-width: 100%; margin: 0; overflow-x: hidden;\">\n<div class=\"col-md-12\" style=\"max-width: 100%; overflow-x: hidden;\">\n<h5 style=\"font-size: 1.15rem; font-weight: 600; margin: 1.2em 0 0.8em 0; color: #463d38;\">\u5fc5\u8981\u306a\u60c5\u5831<\/h5>\n<ul>\n<li><strong style=\"color: #2c3e50; font-weight: 600;\">GA4\u6e2c\u5b9aID<\/strong>\uff1aG-XXXXXXXXXX \u5f62\u5f0f\uff08MOTENASU\u5074\u304b\u3089\u63d0\u4f9b\uff09<\/li>\n<li><strong style=\"color: #2c3e50; font-weight: 600;\">clientId<\/strong>\uff1a\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u8b58\u5225ID\uff08MOTENASU\u5074\u304b\u3089\u63d0\u4f9b\uff09<\/li>\n<li><strong style=\"color: #2c3e50; font-weight: 600;\">Shopify\u7ba1\u7406\u753b\u9762\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u9650<\/strong><\/li>\n<\/ul>\n<h5 style=\"font-size: 1.15rem; font-weight: 600; margin: 1.2em 0 0.8em 0; color: #463d38;\">theme.liquid\u306e\u7de8\u96c6\u624b\u9806<\/h5>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">1. \u300c\u30aa\u30f3\u30e9\u30a4\u30f3\u30b9\u30c8\u30a2\u300d \u2192 \u300c\u30c6\u30fc\u30de\u300d \u3092\u958b\u304f<\/h6>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">2. \u73fe\u5728\u4f7f\u7528\u4e2d\u30c6\u30fc\u30de\u306e\u53f3\u4e0a\u300c\u2026\u300d\u30dc\u30bf\u30f3\uff08\u307e\u305f\u306f\u300c\u30a2\u30af\u30b7\u30e7\u30f3\u300d\uff09\u3092\u30af\u30ea\u30c3\u30af<\/h6>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">3. \u300c\u30b3\u30fc\u30c9\u3092\u7de8\u96c6\u300d\u3092\u9078\u629e<\/h6>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">4. \u5de6\u30e1\u30cb\u30e5\u30fc\u306e\u30d5\u30a1\u30a4\u30eb\u30c4\u30ea\u30fc\u304b\u3089 layout\/theme.liquid \u3092\u958b\u304f<\/h6>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">5. \u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u5f8c\u3001\u53f3\u4e0a\u306e\u300c\u4fdd\u5b58\u300d\u30dc\u30bf\u30f3\u3067\u53cd\u6620<\/h6>\n<p style=\"font-size: 1rem; line-height: 1.7; margin-bottom: 1rem;\">\uff08Shopify\u306f\u81ea\u52d5\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4fdd\u6301\u3057\u307e\u3059\uff09<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"methodWrap\" style=\"margin-bottom: 2.5rem; max-width: 100%; overflow-x: hidden;\">\n<h4 class=\"method\"><span class=\"methodNumber\">\u25bc<\/span><span class=\"methodTxt\">theme.liquid\u3078\u306e\u8a2d\u7f6e<\/span><\/h4>\n<div class=\"row mb-3\" style=\"max-width: 100%; margin: 0; overflow-x: hidden;\">\n<div class=\"col-md-12\" style=\"max-width: 100%; overflow-x: hidden;\">\n<h5 style=\"font-size: 1.15rem; font-weight: 600; margin: 1.2em 0 0.8em 0; color: #463d38;\">\u8a2d\u7f6e\u4f4d\u7f6e1\uff1a&lt;\/head&gt; \u9589\u3058\u30bf\u30b0\u306e\u76f4\u524d<\/h5>\n<p style=\"font-size: 1rem; line-height: 1.7; margin-bottom: 1rem;\">\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u8aad\u307f\u8fbc\u307f\u3068\u521d\u671f\u5316\u30b3\u30fc\u30c9\u3092<code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">&lt;\/head&gt;<\/code>\u9589\u3058\u30bf\u30b0\u306e\u76f4\u524d\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"background: #2d2d2d; color: #f0f0f0; padding: 1.2em; margin: 1em 0; border-radius: 6px; overflow-x: auto; font-family: 'Courier New', Consolas, monospace; font-size: 0.9em; line-height: 1.6; border: 1px solid #444; max-width: 100%; word-wrap: break-word; white-space: pre-wrap;\">&lt;!-- \u65e2\u5b58\u306e\u30b3\u30fc\u30c9 --&gt;\n&lt;script&gt;document.documentElement.className = document.documentElement.className.replace('no-js', 'js');\nif (Shopify.designMode) {\n  document.documentElement.classList.add('shopify-design-mode');\n}\n&lt;\/script&gt;\n\n&lt;!-- &#x2b07;&#xfe0f; \u3053\u3053\u304b\u3089\u8ffd\u52a0 --&gt;\n&lt;script defer src=\"https:\/\/ga4.motenasu-cdn.com\/ga4-common.js\"&gt;&lt;\/script&gt;\n&lt;script&gt;\n    document.addEventListener('DOMContentLoaded', function() {\n        \/\/ GA4\u7d71\u5408\u30af\u30e9\u30b9\u3067\u521d\u671f\u5316\n        window.MOTENASU = window.MOTENASU || {};\n\n        window.MOTENASU.ga4 = new GA4Analytics({\n            measurementId: 'G-XXXXXXXXXX',  \/\/ \u2190 \u6e2c\u5b9aID\u306b\u7f6e\u304d\u63db\u3048\n            clientId: 'your_client_id',      \/\/ \u2190 \u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u306b\u7f6e\u304d\u63db\u3048\n            debugMode: false\n        });\n\n        \/\/ \u81ea\u52d5\u8ffd\u8de1\u3092\u6709\u52b9\u306b\u3059\u308b\n        window.MOTENASU.ga4.enableAutoTracking({\n            downloads: true,  \/\/ \u30d5\u30a1\u30a4\u30eb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u8ffd\u8de1\n            forms: true       \/\/ \u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u8ffd\u8de1\n        });\n\n        \/\/ \u30ed\u30b0\u30a4\u30f3\u6e08\u307f\u30e6\u30fc\u30b6\u30fc\u306e\u8b58\u5225\n        {% if customer %}\n          window.MOTENASU.ga4.setUserIdAfterLogin('{{ customer.id }}');\n        {% endif %}\n    });\n&lt;\/script&gt;\n&lt;!-- &#x2b06;&#xfe0f; \u3053\u3053\u307e\u3067\u8ffd\u52a0 --&gt;\n&lt;\/head&gt;<\/pre>\n<div class=\"attention\">\n<h3>\u8a2d\u5b9a\u5024\u306e\u5909\u66f4\u30dd\u30a4\u30f3\u30c8<\/h3>\n<ul>\n<li><code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">measurementId<\/code>\uff1aMOTENASU\u304b\u3089\u63d0\u4f9b\u3055\u308c\u305fGA4\u6e2c\u5b9aID\uff08G-XXXXXXXXXX\uff09<\/li>\n<li><code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">clientId<\/code>\uff1aMOTENASU\u304b\u3089\u63d0\u4f9b\u3055\u308c\u305f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u8b58\u5225ID<\/li>\n<li><code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">debugMode<\/code>\uff1a\u901a\u5e38\u306f<code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">false<\/code>\uff08\u30c7\u30d0\u30c3\u30b0\u6642\u306e\u307f<code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">true<\/code>\uff09<\/li>\n<\/ul>\n<\/div>\n<h5 style=\"font-size: 1.15rem; font-weight: 600; margin: 1.2em 0 0.8em 0; color: #463d38;\">\u8a2d\u7f6e\u4f4d\u7f6e2\uff1a&lt;\/body&gt; \u9589\u3058\u30bf\u30b0\u306e\u76f4\u524d<\/h5>\n<p style=\"font-size: 1rem; line-height: 1.7; margin-bottom: 1rem;\">\u5404\u7a2e\u30a4\u30d9\u30f3\u30c8\u8ffd\u8de1\u30b3\u30fc\u30c9\u3092<code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">&lt;\/body&gt;<\/code>\u9589\u3058\u30bf\u30b0\u306e\u76f4\u524d\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"background: #2d2d2d; color: #f0f0f0; padding: 1.2em; margin: 1em 0; border-radius: 6px; overflow-x: auto; font-family: 'Courier New', Consolas, monospace; font-size: 0.9em; line-height: 1.6; border: 1px solid #444; max-width: 100%; word-wrap: break-word; white-space: pre-wrap;\">&lt;!-- &#x2b07;&#xfe0f; \u3053\u3053\u304b\u3089\u8ffd\u52a0 --&gt;\n&lt;script&gt;\n  document.addEventListener('DOMContentLoaded', function() {\n    if (!window.MOTENASU || !window.MOTENASU.ga4) {\n      return;\n    }\n\n    \/\/ ===== \u5546\u54c1\u30da\u30fc\u30b8\u95b2\u89a7 =====\n    {% if template.name == 'product' %}\n    window.MOTENASU.ga4.ecommerce.trackViewItem({\n      item_id: '{{ product.id }}',\n      item_name: '{{ product.title | escape }}',\n      price: {{ product.price | money_without_currency | remove: ',' }},\n      item_category: '{{ product.type }}',\n      item_brand: '{{ product.vendor }}',\n      quantity: 1\n    });\n    {% endif %}\n\n    \/\/ ===== \u30ab\u30fc\u30c8\u8ffd\u52a0\u30fb\u524a\u9664\u30fb\u30af\u30ea\u30a2\u306e\u81ea\u52d5\u691c\u77e5 =====\n    var originalFetch = window.fetch;\n    window.fetch = function() {\n      var args = Array.prototype.slice.call(arguments);\n      var url = args[0];\n      var options = args[1] || {};\n\n      \/\/ --- \u30ab\u30fc\u30c8\u8ffd\u52a0 ---\n      if (typeof url === 'string' && url.includes('\/cart\/add')) {\n        var fetchPromise = originalFetch.apply(this, args);\n        fetchPromise.then(function(response) {\n          if (response.ok) {\n            response.clone().json().then(function(data) {\n              if (data.items && Array.isArray(data.items)) {\n                data.items.forEach(function(item) {\n                  window.MOTENASU.ga4.handleAddToCart({\n                    item_id: String(item.product_id || item.id),\n                    item_name: item.product_title || item.title,\n                    price: (item.price || 0) \/ 100,\n                    quantity: item.quantity || 1,\n                    image_url: item.image || ''\n                  });\n                });\n              } else if (data.id) {\n                window.MOTENASU.ga4.handleAddToCart({\n                  item_id: String(data.product_id || data.id),\n                  item_name: data.product_title || data.title,\n                  price: (data.price || 0) \/ 100,\n                  quantity: data.quantity || 1,\n                  image_url: data.image || ''\n                });\n              }\n            });\n          }\n        });\n        return fetchPromise;\n      }\n\n      \/\/ --- \u30ab\u30fc\u30c8\u6570\u91cf\u5909\u66f4\uff08\u8ffd\u52a0\u30fb\u524a\u9664\uff09 ---\n      if (typeof url === 'string' && url.includes('\/cart\/change')) {\n        var fetchPromise = originalFetch.apply(this, args);\n\n        fetchPromise.then(function(response) {\n          if (response.ok) {\n            response.clone().json().then(function(data) {\n                \/\/ \u6570\u91cf\u6e1b\u5c11 (items_removed)\n                if (data.items_removed && data.items_removed.length > 0) {\n                  data.items_removed.forEach(function(item) {\n                    window.MOTENASU.ga4.ecommerce.trackRemoveFromCart({\n                      item_id: String(item.product_id || item.id),\n                      item_name: item.product_title || item.title,\n                      price: (item.price || 0) \/ 100,\n                      quantity: item.quantity || 1,\n                      image_url: item.image || ''\n                    });\n                  });\n                }\n\n                \/\/ \u6570\u91cf\u5897\u52a0 (items_added)\n                if (data.items_added && data.items_added.length > 0) {\n                  data.items_added.forEach(function(item) {\n                    window.MOTENASU.ga4.handleAddToCart({\n                      item_id: String(item.product_id || item.id),\n                      item_name: item.product_title || item.title,\n                      price: (item.price || 0) \/ 100,\n                      quantity: item.quantity || 1,\n                      image_url: item.image || ''\n                    });\n                  });\n                }\n            }).catch(function(err) {\n              console.error('JSON error:', err);\n            });\n          }\n        });\n        return fetchPromise;\n      }\n\n      return originalFetch.apply(this, args);\n    };\n\n    \/\/ ===== \u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u958b\u59cb\u30c8\u30e9\u30c3\u30ad\u30f3\u30b0 =====\n    {% if template.name == 'cart' or template.name == 'product' %}\n      var checkoutButtons = document.querySelectorAll([\n        '[name=\"checkout\"]',\n        '[href*=\"\/checkout\"]',\n        '.shopify-payment-button__button'\n      ].join(','));\n\n      checkoutButtons.forEach(function(button) {\n        button.addEventListener('click', function() {\n          fetch('\/cart.js')\n            .then(function(res) { return res.json(); })\n            .then(function(cart) {\n              var items = cart.items.map(function(item) {\n                return {\n                  item_id: String(item.product_id),\n                  item_name: item.product_title,\n                  price: item.price \/ 100,\n                  quantity: item.quantity\n                };\n              });\n\n              window.MOTENASU.ga4.ecommerce.trackBeginCheckout(items, '', {\n                value: cart.total_price \/ 100,\n                currency: 'JPY'\n              });\n            });\n        });\n      });\n    {% endif %}\n  });\n&lt;\/script&gt;\n&lt;!-- &#x2b06;&#xfe0f; \u3053\u3053\u307e\u3067\u8ffd\u52a0 --&gt;\n\n{%- if settings.predictive_search_enabled -%}\n  &lt;script src=\"{{ 'predictive-search.js' | asset_url }}\" defer=\"defer\"&gt;&lt;\/script&gt;\n{%- endif -%}\n&lt;\/body&gt;\n&lt;\/html&gt;<\/pre>\n<div class=\"attention\">\n<h3>theme.liquid\u306e\u5b9f\u88c5\u5b8c\u4e86<\/h3>\n<p>\u3053\u308c\u3067\u5546\u54c1\u95b2\u89a7\u3001\u30ab\u30fc\u30c8\u64cd\u4f5c\u3001\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u958b\u59cb\u306e\u8ffd\u8de1\u304c\u52d5\u4f5c\u3057\u307e\u3059\u3002\n<\/p><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"methodWrap\" style=\"margin-bottom: 2.5rem; max-width: 100%; overflow-x: hidden;\">\n<h4 class=\"method\"><span class=\"methodNumber\">\u25bc<\/span><span class=\"methodTxt\">\u30ab\u30b9\u30bf\u30de\u30fc\u30a4\u30d9\u30f3\u30c8\u3078\u306e\u8a2d\u7f6e<\/span><\/h4>\n<div class=\"row mb-3\" style=\"max-width: 100%; margin: 0; overflow-x: hidden;\">\n<div class=\"col-md-12\" style=\"max-width: 100%; overflow-x: hidden;\">\n<div class=\"attention\">\n<h3>\u91cd\u8981\uff1a\u8cfc\u5165\u5b8c\u4e86\u30a4\u30d9\u30f3\u30c8\u306f\u5fc5\u305a\u30ab\u30b9\u30bf\u30de\u30fc\u30a4\u30d9\u30f3\u30c8\u3067\u5b9f\u88c5\u3057\u3066\u304f\u3060\u3055\u3044<\/h3>\n<p>Shopify\u306e\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u30d7\u30ed\u30bb\u30b9\u306ftheme.liquid\u306e\u5916\u3067\u52d5\u4f5c\u3059\u308b\u305f\u3081\u3001\u8cfc\u5165\u5b8c\u4e86\u30a4\u30d9\u30f3\u30c8\u306f\u5c02\u7528\u306e\u300c\u30ab\u30b9\u30bf\u30de\u30fc\u30a4\u30d9\u30f3\u30c8\u300d\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\n<\/p><\/div>\n<h5 style=\"font-size: 1.15rem; font-weight: 600; margin: 1.2em 0 0.8em 0; color: #463d38;\">\u8a2d\u5b9a\u624b\u9806<\/h5>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">1. \u5de6\u4e0b\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300c\u8a2d\u5b9a\u300d\u3092\u958b\u304f<\/h6>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">2. \u300c\u30ab\u30b9\u30bf\u30de\u30fc\u30a4\u30d9\u30f3\u30c8\u300d\u3092\u30af\u30ea\u30c3\u30af<\/h6>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">3. \u300c\u30ab\u30b9\u30bf\u30e0\u30d4\u30af\u30bb\u30eb\u3092\u8ffd\u52a0\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af<\/h6>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">4. \u300c\u65b0\u3057\u3044\u30ab\u30b9\u30bf\u30e0\u30d4\u30af\u30bb\u30eb\u3092\u4f5c\u6210\u300d\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b<\/h6>\n<ul>\n<li>\u30d4\u30af\u30bb\u30eb\u540d\uff08\u4efb\u610f\u306e\u540d\u524d\uff09\u3092\u5165\u529b<\/li>\n<li>\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u6b04\u306b\u4ee5\u4e0b\u306eJavaScript\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051<\/li>\n<\/ul>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">5. \u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051<\/h6>\n<pre style=\"background: #2d2d2d; color: #f0f0f0; padding: 1.2em; margin: 1em 0; border-radius: 6px; overflow-x: auto; font-family: 'Courier New', Consolas, monospace; font-size: 0.9em; line-height: 1.6; border: 1px solid #444; max-width: 100%; word-wrap: break-word; white-space: pre-wrap;\">\/\/ Purchase tracking via Custom Pixel\nanalytics.subscribe(\"checkout_completed\", function(event) {\n    var checkout = event.data.checkout;\n    \n    \/\/ GA4\u7d71\u5408\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u8aad\u307f\u8fbc\u307f\n    var script = document.createElement('script');\n    script.src = 'https:\/\/ga4.motenasu-cdn.com\/ga4-common.js';\n    script.onload = function() {\n      \/\/ \u30e9\u30a4\u30d6\u30e9\u30ea\u8aad\u307f\u8fbc\u307f\u5b8c\u4e86\u5f8c\u306b\u521d\u671f\u5316\n      window.MOTENASU = window.MOTENASU || {};\n      window.MOTENASU.ga4 = new GA4Analytics({\n        measurementId: 'G-XXXXXXXXXX',  \/\/ \u2190 \u6e2c\u5b9aID\u306b\u7f6e\u304d\u63db\u3048\n        clientId: 'your_client_id',      \/\/ \u2190 \u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u306b\u7f6e\u304d\u63db\u3048\n        debugMode: false\n      });\n\n      \/\/ \u5546\u54c1\u30a2\u30a4\u30c6\u30e0\u306e\u5909\u63db\n      var items = [];\n      if (checkout.lineItems) {\n        checkout.lineItems.forEach(function(item) {\n          items.push({\n            item_id: String(item.variant.product.id),\n            item_name: item.title,\n            item_category: item.variant.product.productType || '',\n            item_brand: item.variant.product.vendor || '',\n            price: parseFloat(item.variant.price.amount),\n            quantity: item.quantity\n          });\n        });\n      }\n\n      \/\/ \u8cfc\u5165\u5b8c\u4e86\u30c8\u30e9\u30c3\u30ad\u30f3\u30b0\n      window.MOTENASU.ga4.handlePurchase({\n        transaction_id: String(checkout.order.id),\n        value: parseFloat(checkout.totalPrice.amount),\n        tax: parseFloat(checkout.totalTax ? checkout.totalTax.amount : 0),\n        shipping: parseFloat(checkout.shippingLine ? checkout.shippingLine.price.amount : 0),\n        currency: checkout.currencyCode,\n        coupon: checkout.discountApplications && checkout.discountApplications[0] ? checkout.discountApplications[0].title : '',\n        items: items\n      });\n    };\n    document.head.appendChild(script);\n});<\/pre>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">6. \u300c\u4fdd\u5b58\u300d\u2192\u300c\u6709\u52b9\u5316\u300d\u3092\u30af\u30ea\u30c3\u30af<\/h6>\n<div class=\"attention\">\n<h3>\u8a2d\u5b9a\u5024\u306e\u5909\u66f4\u30dd\u30a4\u30f3\u30c8<\/h3>\n<ul>\n<li><code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">measurementId<\/code>\uff1atheme.liquid\u3068\u540c\u3058GA4\u6e2c\u5b9aID<\/li>\n<li><code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">clientId<\/code>\uff1atheme.liquid\u3068\u540c\u3058\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u8b58\u5225ID<\/li>\n<li><code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">debugMode<\/code>\uff1a\u901a\u5e38\u306f<code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">false<\/code>\uff08\u30c7\u30d0\u30c3\u30b0\u6642\u306e\u307f<code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">true<\/code>\uff09<\/li>\n<\/ul>\n<\/div>\n<div class=\"attention\">\n<h3>\u30ab\u30b9\u30bf\u30de\u30fc\u30a4\u30d9\u30f3\u30c8\u306e\u5b9f\u88c5\u5b8c\u4e86<\/h3>\n<p>\u3053\u308c\u3067\u8cfc\u5165\u5b8c\u4e86\u30a4\u30d9\u30f3\u30c8\u306e\u8ffd\u8de1\u304c\u52d5\u4f5c\u3057\u307e\u3059\u3002\n<\/p><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"methodWrap\" style=\"margin-bottom: 2.5rem; max-width: 100%; overflow-x: hidden;\">\n<h4 class=\"method\"><span class=\"methodNumber\">\u25bc<\/span><span class=\"methodTxt\">\u52d5\u4f5c\u78ba\u8a8d<\/span><\/h4>\n<div class=\"row mb-3\" style=\"max-width: 100%; margin: 0; overflow-x: hidden;\">\n<div class=\"col-md-12\" style=\"max-width: 100%; overflow-x: hidden;\">\n<h5 style=\"font-size: 1.15rem; font-weight: 600; margin: 1.2em 0 0.8em 0; color: #463d38;\">\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3067\u306e\u78ba\u8a8d<\/h5>\n<p style=\"font-size: 1rem; line-height: 1.7; margin-bottom: 1rem;\">\u30c7\u30d0\u30c3\u30b0\u6642\u306f<code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">debugMode: true<\/code> \u306b\u5909\u66f4\u3059\u308b\u3068\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u958b\u767a\u8005\u30c4\u30fc\u30eb\uff08F12\uff09\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u8a73\u7d30\u306a\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">1. \u5546\u54c1\u30da\u30fc\u30b8\u95b2\u89a7\u306e\u78ba\u8a8d<\/h6>\n<ul>\n<li>\u5546\u54c1\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9<\/li>\n<li>\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u300c<code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">GA4Ecommerce: Tracking view_item<\/code>\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d<\/li>\n<\/ul>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">2. \u30ab\u30fc\u30c8\u8ffd\u52a0\u306e\u78ba\u8a8d<\/h6>\n<ul>\n<li>\u5546\u54c1\u3092\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0<\/li>\n<li>\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u300c<code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">GA4 Unified: handleAddToCart - Tracking ecommerce event<\/code>\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d<\/li>\n<li>\u7d9a\u3044\u3066\u300c<code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">GA4 Unified: handleAddToCart - Sending to beacon API<\/code>\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d<\/li>\n<\/ul>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">3. \u30ab\u30fc\u30c8\u524a\u9664\u306e\u78ba\u8a8d<\/h6>\n<ul>\n<li>\u30ab\u30fc\u30c8\u5185\u306e\u5546\u54c1\u6570\u91cf\u3092\u6e1b\u3089\u3059\u3001\u307e\u305f\u306f\u524a\u9664<\/li>\n<li>\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u300c<code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">GA4Ecommerce: Tracking remove_from_cart<\/code>\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d<\/li>\n<\/ul>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">4. \u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u958b\u59cb\u306e\u78ba\u8a8d<\/h6>\n<ul>\n<li>\u30ab\u30fc\u30c8\u30da\u30fc\u30b8\u3067\u300c\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af<\/li>\n<li>\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u300c<code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">GA4Ecommerce: Tracking begin_checkout<\/code>\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d<\/li>\n<\/ul>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">5. \u8cfc\u5165\u5b8c\u4e86\u306e\u78ba\u8a8d<\/h6>\n<ul>\n<li>\u30c6\u30b9\u30c8\u8cfc\u5165\u3092\u5b8c\u4e86\u3055\u305b\u308b\uff08Shopify\u306e\u30c6\u30b9\u30c8\u30e2\u30fc\u30c9\u3092\u4f7f\u7528\uff09<\/li>\n<li>\u30b5\u30f3\u30ad\u30e5\u30fc\u30da\u30fc\u30b8\u3067\u958b\u767a\u8005\u30c4\u30fc\u30eb\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u78ba\u8a8d<\/li>\n<li>\u300c<code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">GA4 Unified: handlePurchase - Tracking ecommerce event<\/code>\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d<\/li>\n<li>\u7d9a\u3044\u3066\u300c<code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">GA4 Unified: handlePurchase - Sending to beacon API<\/code>\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d<\/li>\n<\/ul>\n<h5 style=\"font-size: 1.15rem; font-weight: 600; margin: 1.2em 0 0.8em 0; color: #463d38;\">\u78ba\u8a8d\u9805\u76ee\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8<\/h5>\n<table class=\"table table-bordered\" style=\"width: 100%; table-layout: fixed; word-wrap: break-word;\">\n<colgroup>\n<col style=\"width: 15%;\">\n<col style=\"width: 30%;\">\n<col style=\"width: 55%;\">\n\t<\/colgroup>\n<thead>\n<tr>\n<th>\u30a4\u30d9\u30f3\u30c8<\/th>\n<th>\u78ba\u8a8d\u65b9\u6cd5<\/th>\n<th>\u30b3\u30f3\u30bd\u30fc\u30eb\u30ed\u30b0\u4f8b<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong style=\"color: #2c3e50; font-weight: 600;\">\u5546\u54c1\u95b2\u89a7<\/strong><\/td>\n<td>\u5546\u54c1\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9<\/td>\n<td><code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">GA4Ecommerce: Tracking view_item<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong style=\"color: #2c3e50; font-weight: 600;\">\u30ab\u30fc\u30c8\u8ffd\u52a0<\/strong><\/td>\n<td>\u5546\u54c1\u3092\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0<\/td>\n<td><code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">GA4 Unified: handleAddToCart<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong style=\"color: #2c3e50; font-weight: 600;\">\u30ab\u30fc\u30c8\u524a\u9664<\/strong><\/td>\n<td>\u30ab\u30fc\u30c8\u5185\u5546\u54c1\u3092\u524a\u9664<\/td>\n<td><code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">GA4Ecommerce: Tracking remove_from_cart<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong style=\"color: #2c3e50; font-weight: 600;\">\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8<\/strong><\/td>\n<td>\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u30dc\u30bf\u30f3\u30af\u30ea\u30c3\u30af<\/td>\n<td><code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">GA4Ecommerce: Tracking begin_checkout<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong style=\"color: #2c3e50; font-weight: 600;\">\u8cfc\u5165\u5b8c\u4e86<\/strong><\/td>\n<td>\u30c6\u30b9\u30c8\u8cfc\u5165\u5b8c\u4e86<\/td>\n<td><code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">GA4 Unified: handlePurchase<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"attention\">\n<h3>\u672c\u756a\u74b0\u5883\u30ea\u30ea\u30fc\u30b9\u524d\u306e\u6700\u7d42\u78ba\u8a8d<\/h3>\n<ul>\n<li><code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">debugMode: false<\/code> \u306b\u306a\u3063\u3066\u3044\u308b\u304b\u78ba\u8a8d<\/li>\n<li>\u30c6\u30b9\u30c8\u8cfc\u5165\u3067\u30a4\u30d9\u30f3\u30c8\u304c\u6b63\u5e38\u306b\u9001\u4fe1\u3055\u308c\u3066\u3044\u308b\u304b<\/li>\n<li>MOTENASU\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3067\u30c7\u30fc\u30bf\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u304b<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"methodWrap\" style=\"margin-bottom: 2.5rem; max-width: 100%; overflow-x: hidden;\">\n<h4 class=\"method\"><span class=\"methodNumber\">\u25bc<\/span><span class=\"methodTxt\">\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<\/span><\/h4>\n<div class=\"row mb-3\" style=\"max-width: 100%; margin: 0; overflow-x: hidden;\">\n<div class=\"col-md-12\" style=\"max-width: 100%; overflow-x: hidden;\">\n<h5 style=\"font-size: 1.15rem; font-weight: 600; margin: 1.2em 0 0.8em 0; color: #463d38;\">\u30a4\u30d9\u30f3\u30c8\u304c\u9001\u4fe1\u3055\u308c\u306a\u3044<\/h5>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">\u539f\u56e01\uff1a\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3044\u306a\u3044<\/h6>\n<ul>\n<li>\u30b3\u30f3\u30bd\u30fc\u30eb\u3067 <code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">window.MOTENASU<\/code> \u3092\u5b9f\u884c<\/li>\n<li><code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">undefined<\/code> \u3068\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u8aad\u307f\u8fbc\u307f\u306b\u5931\u6557\u3057\u3066\u3044\u307e\u3059<\/li>\n<li>theme.liquid\u306e<code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">&lt;script defer src=\"...\"&gt;<\/code>\u30bf\u30b0\u304c\u6b63\u3057\u304f\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d<\/li>\n<\/ul>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">\u539f\u56e02\uff1a\u6e2c\u5b9aID\u307e\u305f\u306fclientId\u304c\u9593\u9055\u3063\u3066\u3044\u308b<\/h6>\n<ul>\n<li>MOTENASU\u304b\u3089\u63d0\u4f9b\u3055\u308c\u305f\u6b63\u3057\u3044\u5024\u306b\u7f6e\u304d\u63db\u3048\u3066\u3044\u308b\u304b\u78ba\u8a8d<\/li>\n<li>\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d<\/li>\n<\/ul>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">\u539f\u56e03\uff1a\u30ab\u30b9\u30bf\u30de\u30fc\u30a4\u30d9\u30f3\u30c8\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u306a\u3044<\/h6>\n<ul>\n<li>Shopify\u7ba1\u7406\u753b\u9762 \u2192 \u8a2d\u5b9a \u2192 \u30ab\u30b9\u30bf\u30de\u30fc\u30a4\u30d9\u30f3\u30c8 \u3067\u4fdd\u5b58\u6e08\u307f\u304b\u78ba\u8a8d<\/li>\n<li>\u8cfc\u5165\u5b8c\u4e86\u30a4\u30d9\u30f3\u30c8\u306f\u5fc5\u305a\u30ab\u30b9\u30bf\u30de\u30fc\u30a4\u30d9\u30f3\u30c8\u3067\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059<\/li>\n<\/ul>\n<h5 style=\"font-size: 1.15rem; font-weight: 600; margin: 1.2em 0 0.8em 0; color: #463d38;\">\u8cfc\u5165\u5b8c\u4e86\u30a4\u30d9\u30f3\u30c8\u3060\u3051\u9001\u4fe1\u3055\u308c\u306a\u3044<\/h5>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">\u89e3\u6c7a\u65b9\u6cd5<\/h6>\n<ul>\n<li>\u30ab\u30b9\u30bf\u30de\u30fc\u30a4\u30d9\u30f3\u30c8\u306e\u8a2d\u5b9a\u3092\u518d\u78ba\u8a8d<\/li>\n<li>\u6e2c\u5b9aID\u3068clientId\u304ctheme.liquid\u3068\u4e00\u81f4\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d<\/li>\n<li>\u30b5\u30f3\u30ad\u30e5\u30fc\u30da\u30fc\u30b8\u3067\u958b\u767a\u8005\u30c4\u30fc\u30eb\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u958b\u304d\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u78ba\u8a8d<\/li>\n<\/ul>\n<h5 style=\"font-size: 1.15rem; font-weight: 600; margin: 1.2em 0 0.8em 0; color: #463d38;\">\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3067\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u306a\u3044<\/h5>\n<h6 style=\"font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.5em 0; color: #463d38;\">\u89e3\u6c7a\u65b9\u6cd5<\/h6>\n<ul>\n<li><code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">debugMode: true<\/code> \u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d<\/li>\n<li>\u30d6\u30e9\u30a6\u30b6\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u3067 <code style=\"word-break: break-all; display: inline-block; max-width: 100%; background-color: #f5f5f5; color: #d23410; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 0.9em;\">window.MOTENASU.ga4.config<\/code> \u3092\u5b9f\u884c\u3057\u3066\u8a2d\u5b9a\u3092\u78ba\u8a8d<\/li>\n<li>\u30da\u30fc\u30b8\u3092\u30ea\u30ed\u30fc\u30c9\u3057\u3066\u304b\u3089\u518d\u5ea6\u78ba\u8a8d<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"methodWrap\" style=\"margin-bottom: 2.5rem; max-width: 100%; overflow-x: hidden;\">\n<h4 class=\"method\"><span class=\"methodNumber\">\u25bc<\/span><span class=\"methodTxt\">\u6ce8\u610f\u4e8b\u9805\u30fb\u514d\u8cac\u4e8b\u9805<\/span><\/h4>\n<div class=\"row mb-3\" style=\"max-width: 100%; margin: 0; overflow-x: hidden;\">\n<div class=\"col-md-12\" style=\"max-width: 100%; overflow-x: hidden;\">\n<div class=\"attention\">\n<h3>\u52d5\u4f5c\u4fdd\u8a3c\u306b\u3064\u3044\u3066<\/h3>\n<p style=\"font-size: 1rem; line-height: 1.7; margin-bottom: 1rem;\">\u672c\u30ac\u30a4\u30c9\u306b\u8a18\u8f09\u306e\u5b9f\u88c5\u65b9\u6cd5\u306f\u3001Shopify\u306e\u6a19\u6e96\u7684\u306a\u69cb\u6210\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u70b9\u306b\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li><strong style=\"color: #2c3e50; font-weight: 600;\">\u30c6\u30fc\u30de\u69cb\u6210\u306b\u3088\u308b\u5f71\u97ff<\/strong>\n<ul style=\"margin-top: 0.5em;\">\n<li>\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3055\u308c\u305f\u30c6\u30fc\u30de\u3001\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u88fd\u30c6\u30fc\u30de\u3067\u306f\u52d5\u4f5c\u3057\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059<\/li>\n<li>\u30c6\u30fc\u30de\u306e\u69cb\u9020\u304c\u6a19\u6e96\u3068\u7570\u306a\u308b\u5834\u5408\u3001\u30b3\u30fc\u30c9\u306e\u8abf\u6574\u304c\u5fc5\u8981\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059<\/li>\n<\/ul>\n<\/li>\n<li><strong style=\"color: #2c3e50; font-weight: 600;\">Shopify\u30d0\u30fc\u30b8\u30e7\u30f3\u30fb\u4ed5\u69d8\u5909\u66f4\u306e\u5f71\u97ff<\/strong>\n<ul style=\"margin-top: 0.5em;\">\n<li>Shopify\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u4ed5\u69d8\u5909\u66f4\u306b\u3088\u308a\u3001\u52d5\u4f5c\u3057\u306a\u304f\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059<\/li>\n<li>\u30ab\u30b9\u30bf\u30de\u30fc\u30a4\u30d9\u30f3\u30c8API\u306e\u5909\u66f4\u306b\u3088\u308a\u3001\u8cfc\u5165\u5b8c\u4e86\u30a4\u30d9\u30f3\u30c8\u306e\u5b9f\u88c5\u65b9\u6cd5\u304c\u5909\u308f\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059<\/li>\n<\/ul>\n<\/li>\n<li><strong style=\"color: #2c3e50; font-weight: 600;\">\u30a2\u30d7\u30ea\u30fb\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u306e\u7af6\u5408<\/strong>\n<ul style=\"margin-top: 0.5em;\">\n<li>\u4ed6\u306e\u30c8\u30e9\u30c3\u30ad\u30f3\u30b0\u30c4\u30fc\u30eb\u3084\u30ab\u30fc\u30c8\u95a2\u9023\u30a2\u30d7\u30ea\u3068\u306e\u7af6\u5408\u306b\u3088\u308a\u3001\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059<\/li>\n<li>JavaScript\u306efetch\u30e1\u30bd\u30c3\u30c9\u3092\u4e0a\u66f8\u304d\u3059\u308b\u4ed6\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u306e\u7af6\u5408\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059<\/li>\n<\/ul>\n<\/li>\n<li><strong style=\"color: #2c3e50; font-weight: 600;\">\u30d6\u30e9\u30a6\u30b6\u74b0\u5883\u306e\u5f71\u97ff<\/strong>\n<ul style=\"margin-top: 0.5em;\">\n<li>\u5e83\u544a\u30d6\u30ed\u30c3\u30ab\u30fc\u3084\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u4fdd\u8b77\u6a5f\u80fd\u306b\u3088\u308a\u3001\u30a4\u30d9\u30f3\u30c8\u9001\u4fe1\u304c\u30d6\u30ed\u30c3\u30af\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059<\/li>\n<li>\u53e4\u3044\u30d6\u30e9\u30a6\u30b6\u3067\u306fJavaScript\u304c\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n<div class=\"attention\">\n<h3>\u514d\u8cac\u4e8b\u9805<\/h3>\n<ul>\n<li>\u672c\u30ac\u30a4\u30c9\u306e\u5b9f\u88c5\u306b\u3088\u308a\u767a\u751f\u3057\u305f\u3044\u304b\u306a\u308b\u640d\u5bb3\u306b\u3064\u3044\u3066\u3082\u3001MOTENASU\u306f\u4e00\u5207\u306e\u8cac\u4efb\u3092\u8ca0\u3044\u307e\u305b\u3093<\/li>\n<li>\u5b9f\u88c5\u524d\u306b\u5fc5\u305a\u30c6\u30b9\u30c8\u74b0\u5883\u3067\u306e\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044<\/li>\n<li>\u672c\u756a\u74b0\u5883\u3078\u306e\u9069\u7528\u306f\u3001\u304a\u5ba2\u69d8\u306e\u8cac\u4efb\u306b\u304a\u3044\u3066\u5b9f\u65bd\u3057\u3066\u304f\u3060\u3055\u3044<\/li>\n<li>\u5b9f\u88c5\u5f8c\u3082\u5b9a\u671f\u7684\u306b\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3044\u3001\u6b63\u5e38\u306b\u30c7\u30fc\u30bf\u304c\u9001\u4fe1\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u307e\u3059<\/li>\n<\/ul>\n<\/div>\n<div class=\"attention\">\n<h3>\u30b5\u30dd\u30fc\u30c8\u306b\u3064\u3044\u3066<\/h3>\n<ul>\n<li>\u57fa\u672c\u7684\u306a\u5b9f\u88c5\u30b5\u30dd\u30fc\u30c8\u306f\u63d0\u4f9b\u3044\u305f\u3057\u307e\u3059\u304c\u3001\u500b\u5225\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u5bfe\u5fdc\u306b\u306f\u5225\u9014\u8cbb\u7528\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059<\/li>\n<li>\u30c6\u30fc\u30de\u56fa\u6709\u306e\u554f\u984c\u3084\u3001\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u88fd\u30a2\u30d7\u30ea\u3068\u306e\u7af6\u5408\u306b\u3064\u3044\u3066\u306f\u3001\u30b5\u30dd\u30fc\u30c8\u5bfe\u8c61\u5916\u3068\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059<\/li>\n<li>Shopify\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u4ed5\u69d8\u5909\u66f4\u306b\u4f34\u3046\u4fee\u6b63\u5bfe\u5fdc\u306b\u306f\u3001\u5bfe\u5fdc\u306b\u6642\u9593\u3092\u8981\u3059\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u25bc\u6982\u8981 \u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001Shopify\u30b9\u30c8\u30a2\u306bMOTENASU WEB\u884c\u52d5\u30bf\u30b0\u3092\u5b9f\u88c5\u3059\u308b\u624b\u9806\u3092\u8aac\u660e\u3057\u307e\u3059\u3002 \u5b9f\u88c5\u3059\u308b\u6a5f\u80fd \u30da\u30fc\u30b8\u30d3\u30e5\u30fc\u81ea\u52d5\u8ffd\u8de1 \u5546\u54c1\u8a73\u7d30\u30da\u30fc\u30b8\u95b2\u89a7\uff08view_item\uff09 \u30ab\u30fc\u30c8\u8ffd\u52a0\uff08add_to_cart [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-12193","post","type-post","status-publish","format-standard","hentry","category-analysis"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/motenasu.info\/manual\/index.php?rest_route=\/wp\/v2\/posts\/12193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/motenasu.info\/manual\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/motenasu.info\/manual\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/motenasu.info\/manual\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/motenasu.info\/manual\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12193"}],"version-history":[{"count":7,"href":"https:\/\/motenasu.info\/manual\/index.php?rest_route=\/wp\/v2\/posts\/12193\/revisions"}],"predecessor-version":[{"id":12285,"href":"https:\/\/motenasu.info\/manual\/index.php?rest_route=\/wp\/v2\/posts\/12193\/revisions\/12285"}],"wp:attachment":[{"href":"https:\/\/motenasu.info\/manual\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/motenasu.info\/manual\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/motenasu.info\/manual\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}