संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह लेख उन डेवलपर के लिए है जो अपनी वेबसाइट के पहले पक्ष के कॉन्टेक्स्ट में, सर्वर साइड टैगिंग को होस्ट करना चाहते हैं. सेम-ऑरिजन सर्विंग सबसे सही तरीका है. इससे आपको सर्वर पर सेट होने वाली कुकी से जुड़ी सुरक्षा और उसके लंबे समय तक सर्वर पर स्टोर रहने से जुड़े फ़ायदे मिलते हैं. यहां दिए गए निर्देश, एक ही ऑरिजिन से विज्ञापन दिखाने की सुविधा सेट अप करने के लिए लागू होते हैं. भले ही, आपकी साइट पर gtag.js या gtm.js, दोनों में से कोई भी Google टैग डिप्लॉय किया गया हो.
टैगिंग सर्वर को पहली बार सेट अप करने पर, उसे क्लाउड सेवा देने वाली कंपनी के दिए गए डोमेन पर होस्ट किया जाता है. डिफ़ॉल्ट एंडपॉइंट का इस्तेमाल करने पर, यह डेटा को सर्वर कंटेनर में डिलीवर करता है. हालांकि, यह तीसरे पक्ष के संदर्भ में चलता है. पहले पक्ष के कॉन्टेक्स्ट के फ़ायदे पाने के लिए, आपके टैगिंग सर्वर और वेबसाइट को एक ही डोमेन पर चलाना होगा. इससे, आपको ज़्यादा समय तक सेव रहने वाली कुकी जैसी सुविधाएं मिलती हैं.
नीचे दी गई टेबल में बताया गया है कि पैरंट वेबसाइट को www.example.com पर होस्ट करने पर, टैग करने वाले सर्वर को कैसे होस्ट किया जा सकता है:
एक ही ऑरिजिन (सबसे सही तरीका)
सबडोमेन
डिफ़ॉल्ट डोमेन
यूआरएल का उदाहरण
https://www.example.com/metrics
https://metrics.example.com
https://metrics.run.app
सर्वर से सेट की गई कुकी का ऐक्सेस
सुरक्षा और टिकाऊ होने से जुड़े फ़ायदों का पूरा ऐक्सेस.
सुरक्षा और लंबे समय तक चलने की सुविधाओं का पूरा ऐक्सेस.
कोई नहीं. सिर्फ़ JavaScript कुकी सेट की जा सकती हैं.
सेटअप करने में लगने वाला समय
अनुरोधों को फ़ॉरवर्ड करने के लिए, सीडीएन या लोड बैलेंसर को कॉन्फ़िगर करें. डीएनएस एंट्री अपडेट करने की ज़रूरत पड़ सकती है.
[[["समझने में आसान है","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-15 (UTC) को अपडेट किया गया."],[[["This article guides developers on hosting server-side tagging in a first-party context for enhanced security and cookie durability."],["Achieving same-origin serving involves configuring your tagging server and website to run on the same domain, which can be done using a subdomain or by forwarding requests to a specific path on your main domain."],["Server-side tagging hosted on the default domain lacks access to crucial server-set cookie benefits, unlike same-origin setups."],["Setting up same-origin serving requires updating DNS entries or configuring a CDN/load balancer, depending on the chosen method."],["Before implementing same-origin serving, ensure you've established a server container in Tag Manager and set up a tagging server."]]],["To leverage server-set cookie benefits, host your tagging server in the same first-party context as your website. Options include using the same origin (e.g., `www.example.com/metrics`) or a subdomain (e.g., `metrics.example.com`). Both allow full cookie access, unlike the default provider-hosted domain. Implementing same-origin requires a CDN/load balancer and potential DNS updates, while subdomains only need DNS adjustments. Pre-setup of a server container and tagging server is required.\n"]]