הגדרת Tag Manager לשימוש בכתובות URL יחסיות לפרוטוקול
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כדי לאבטח את נתוני התגים, תג המאגר של Google Tag Manager משתמש ב-HTTPS כדי לטעון משאבים (כלומר https://www.googletagmanager.com).
אם אתם צריכים לטעון את מאגרי התגים של Tag Manager באופן יחסי לפרוטוקול, תוכלו לעשות זאת על ידי שינוי הפרוטוקול בקוד של מאגר התגים ל-// במקום ל-https://.
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().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><iframe src="//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://.
בגרסאות ישנות יותר של קוד מאגר התגים של Tag Manager, השתמשו בכתובת URL יחסית לפרוטוקול כדי לטעון מאגרים (כלומר, //www.googletagmanager.com). הגרסאות הישנות יותר של קוד הקונטיינר של Tag Manager, שרלוונטיות לפרוטוקול, ימשיכו לפעול.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2024-11-08 (שעון 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"]]