태그 데이터를 안전하게 보호하기 위해 Google 태그 관리자 컨테이너 태그는 HTTPS를 사용하여 리소스(예: https://www.googletagmanager.com)를 로드합니다.
프로토콜 기준 방식으로 태그 관리자 컨테이너를 로드해야 하는 경우 컨테이너 코드의 프로토콜을 https:// 대신 //로 조정하면 됩니다.
<!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': newDate().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-XXXXXX');</script> <!-- End Google Tag Manager --> <!-- Google Tag Manager (noscript) --> <noscript><iframesrc="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX" height="0"width="0"style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) -->
프로토콜 기준 URL을 사용하면 http://를 사용하는 페이지에서는 HTTP를 통해, https://를 사용하는 페이지에서는 HTTPS를 통해 컨테이너가 로드됩니다.
이전 버전의 태그 관리자 컨테이너 코드는 프로토콜 기준 URL을 사용하여 컨테이너(예: //www.googletagmanager.com)를 로드했습니다.
이러한 이전 프로토콜 기준 버전 태그 관리자 컨테이너 코드는 계속 작동합니다.
[null,null,["최종 업데이트: 2024-04-17(UTC)"],[[["Google Tag Manager container tag uses HTTPS by default for enhanced security."],["You can switch to a protocol-relative URL (//) for flexible loading based on the page's protocol (HTTP or HTTPS)."],["Existing protocol-relative implementations of Tag Manager containers will continue to function."],["Ensure custom tags on secure pages are set up with protocol-relative or secure URLs for consistent security."]]],["Google Tag Manager uses HTTPS to load resources for security. Users can opt for protocol-relative loading by changing the container code's protocol to `//` instead of `https://`. This method ensures the container loads via HTTP or HTTPS depending on the page's protocol. Older container codes used protocol-relative URLs and remain functional. Custom tags firing on secure pages should also be protocol-relative or secure. The example codes are provided to implement this.\n"]]