GTM Custom HTML टैग के माध्यम से Device Identification एजेंट लोड करें। अपने Google Tag Manager एप्लिकेशन में मिनटों में विज़िटर पहचान, बॉट डिटेक्शन और smart signals जोड़ें।
अपने पसंदीदा पैकेज मैनेजर के साथ अपने प्रोजेक्ट में SDK जोड़ें।
npm install gtm-templateyarn add gtm-templatepnpm add gtm-templateन्यूनतम सेटअप के साथ चालू और तैयार हो जाएँ।
<!-- GTM Custom HTML Tag --><script> (function() { var script = document.createElement('script'); // Public key travels in the s.js query string (?k=...) script.src = 'https://edge.tracio.ai/s.js?k=your-public-key'; script.onload = function() { window.Tracio.load() .then(function(tc) { return tc.get(); }) .then(function(result) { dataLayer.push({ event: 'tracio_loaded', visitorId: result.visitorId }); }); }; document.head.appendChild(script); })();</script>एरर हैंडलिंग, लोडिंग स्थितियों और उन्नत कॉन्फ़िगरेशन के साथ प्रोडक्शन-तैयार पैटर्न।
<!-- GTM Custom HTML Tag — production setup --><script> (function() { var script = document.createElement('script'); // Public key travels in the s.js query string (?k=...) script.src = 'https://edge.tracio.ai/s.js?k=your-public-key'; script.async = true; script.onerror = function() { dataLayer.push({ event: 'tracio_error', tracio_error_message: 'Failed to load agent script', }); }; script.onload = function() { window.Tracio.load() .then(function(tc) { return tc.get(); }) .then(function(result) { dataLayer.push({ event: 'tracio_loaded', visitorId: result.visitorId, confidence: result.confidence, verdict: result.verdict, }); }) .catch(function(err) { dataLayer.push({ event: 'tracio_error', tracio_error_message: err.message, }); }); }; document.head.appendChild(script); })();</script>SDK को आरंभ और कॉन्फ़िगर करने के लिए सभी उपलब्ध विकल्प।
publicKeystringडैशबोर्ड से आपकी पब्लिक की — ब्राउज़र में भेजना सुरक्षितendpointstringप्रॉक्सी-रूटेड डिप्लॉयमेंट के लिए कस्टम एंडपॉइंट URL — स्पष्ट URL region पर भारी पड़ता हैregionstringडेटा रीजन: us या eutimeoutMsnumberपूरी getResult() कॉल के लिए टाइमआउट, मिलीसेकंड मेंlinkedIdstringसाइन-इन यूज़र के लिए आपका आंतरिक अकाउंट ID, ताकि एक ही डिवाइस साझा करने वाली विज़िट्स जोड़ी जा सकेंtagstringपहचान अनुरोध के साथ जुड़ा मुक्त-रूप लेबल, जैसे checkout या logindebugbooleanस्क्रिप्ट लाइफ़साइकल और नेटवर्क गतिविधि को ब्राउज़र कंसोल में लॉग करता हैscriptUrlstringएजेंट स्क्रिप्ट URL का पूरा ओवरराइड — सेल्फ-होस्टिंग या Subresource Integrity के लिएपूर्ण API संदर्भ, webhook कॉन्फ़िगरेशन और उन्नत गाइड के साथ गहराई में जाएँ।
पूर्ण API संदर्भ, इंटीग्रेशन गाइड और सर्वोत्तम अभ्यास।
रीयल-टाइम इवेंट डिलीवरी, पेलोड स्कीमा और सिग्नेचर सत्यापन।
हर डिवाइस पहचान के लिए रीयल-टाइम इवेंट सूचनाएँ कॉन्फ़िगर करें।
अपने Google Tag Manager एप्लिकेशन में 5 मिनट से भी कम समय में Device Fingerprinting जोड़ें।