gtag.js की मदद से Google टैग सेट अप करना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Google टैग एक ऐसा टैग है जिसे इस्तेमाल करने के लिए अपनी वेबसाइट में जोड़ा जा सकता है
Google के मेज़रमेंट और विज्ञापन वाले प्रॉडक्ट, जैसे कि Google Ads, Google
Analytics, Campaign Manager, Display Video 360 और Search Ads 360. इसके बजाय
अलग-अलग Google उत्पादों के लिए कई टैग प्रबंधित करते हैं, तो आप
अपनी पूरी साइट पर Google टैग का इस्तेमाल करके, इस टैग को कई डेस्टिनेशन से जोड़ा जा सकता है.
Google टैग के बारे में ज़्यादा जानें
इस पेज में बताया गया है कि
gtag.js फ़्रेमवर्क शामिल है. अगर आपको JavaScript के बारे में कोई जानकारी नहीं है, तो हमारा सुझाव है कि
gtag.js के बजाय Google Tag Manager.
फ़ायदे
कन्वर्ज़न को मेज़र करने और अपनी कन्वर्ज़न वैल्यू को ऑप्टिमाइज़ करने का सबसे अच्छा तरीका
Google के मार्केटिंग निवेश का मतलब है अपनी साइट के हर पेज पर टैग लगाना. इन्होंने बदलाव किया है
अपनी साइट पर Google टैग लागू करने पर, आपको इन चीज़ों का ऐक्सेस मिलता है
फ़ायदे:
- आने वाले समय में होने वाले कन्वर्ज़न का मेज़रमेंट. नई सुविधाओं का फ़ायदा पाएं
और इंटिग्रेशन के उपलब्ध होने पर, ताकि आप बेहतर ढंग से तैयार हों
ताकि कन्वर्ज़न होने पर उन्हें सटीक तरीके से मेज़र किया जा सके.
- कोडलेस टैग मैनेजमेंट. Google में मेज़रमेंट की सुविधाएं चालू करना
अपने पेज पर टैग को मैन्युअल रूप से बदले बिना इन प्रॉडक्ट के बारे में ज़्यादा जानें.
- इंटिग्रेशन तेज़ी से और आसानी से हो सकता है. व्यवस्थित, आसान
अन्य Google प्रॉडक्ट के साथ लागू करना और इंटिग्रेशन करना, जैसे कि
Analytics और Google Ads.
- कन्वर्ज़न का ज़्यादा सटीक मेज़रमेंट. Google टैग इन कामों में आपकी मदद करता है
कुकी उपलब्ध न होने पर ज़्यादा सटीक कन्वर्ज़न मेज़रमेंट होता है.
इंडस्ट्री के फ़ैक्टर की वजह से, आज के अपडेट न हो पाने वाले कन्वर्ज़न को वापस पाया जा सकता है.
अपनी वेबसाइट में Google टैग जोड़ना
Google टैग की मदद से डेटा इकट्ठा करने के लिए:
Google के जिस प्रॉडक्ट का इस्तेमाल किया जा रहा है उसे खोलें और Google टैग वाली स्क्रीन को ऐक्सेस करें.
टैग आईडी में अपना टैग आईडी ढूंढने का तरीका:
अपना Google टैग आईडी कॉपी करें.
यहां दिए गए कोड सैंपल में अपना Google टैग आईडी चिपकाएं. Google टैग का इस्तेमाल करना
अपने हर पेज पर, ओपनिंग <head>
एचटीएमएल टैग के तुरंत बाद स्निपेट
का इस्तेमाल करें.
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=TAG_ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'TAG_ID');
</script>
Google के विज्ञापन वाले प्रॉडक्ट को डेटा भेजने के लिए, config
कमांड की ज़रूरत होती है.
कई सुविधाओं का इस्तेमाल करने के लिए, आपको अपनी वेबसाइट पर config
निर्देश को सेट करने की ज़रूरत होती है, जैसे कि
अपने-आप इकट्ठा होने वाले इवेंट और कन्वर्ज़न लिंकिंग.
कॉन्फ़िगरेशन निर्देश के बारे में ज़्यादा जानें
Google टैग की पुष्टि करना
यह पुष्टि करने के लिए कि आपका टैग, डेटा भेज रहा है:
- tagassistant.google.com/ पर जाएं.
- डोमेन जोड़ें पर क्लिक करें.
- उस वेबसाइट का यूआरएल डालें जिसे डीबग करना है. यूआरएल "https://" से शुरू होना चाहिए या "http://" होना चाहिए.
- कनेक्ट करें पर क्लिक करें.
Tag Assistant को अपनी वेबसाइट से कनेक्ट करने पर, देखें कि आपका Google टैग आईडी है या नहीं
Google टैग मिले हेडर में दिखता है. अगर Tag Assistant आपकी साइट को नहीं पहचानता, तो
डीबग करने के लिए,
Tag Manager सहायता केंद्र
अपनी साइट की खास जानकारी के लिए, टैग कवरेज की खास जानकारी को भी ऐक्सेस किया जा सकता है
टैगिंग स्थिति.
अगले चरण
Google टैग सेट अप करने के बाद, अब Google के प्रॉडक्ट कॉन्फ़िगर करें और इवेंट डेटा भेजें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe Google tag is a versatile tag that streamlines the use of various Google products like Google Ads and Analytics, replacing the need for multiple individual tags.\u003c/p\u003e\n"],["\u003cp\u003eImplementing the Google tag offers benefits like future-proof conversion measurement, codeless tag management, easier integration with other Google products, and more accurate conversion tracking.\u003c/p\u003e\n"],["\u003cp\u003eTo use the Google tag, copy your tag ID from a Google product (e.g., Google Ads, Analytics), paste it into the provided code snippet, and place the snippet on every page you want to track.\u003c/p\u003e\n"],["\u003cp\u003eVerify your Google tag implementation using Tag Assistant to ensure it's sending data correctly by checking for your tag ID and consulting the Tag Manager help center for troubleshooting.\u003c/p\u003e\n"]]],["The Google tag, a single tag for Google measurement and advertising products, can be implemented across an entire website via the gtag.js framework. To set up, users need to locate their Google tag ID within Google Ads, Analytics, or Floodlight, copy it, and paste it into the provided code snippet within the `\u003chead\u003e` of each web page. Verification involves using Tag Assistant to confirm tag detection and to ensure data is being sent. Once confirmed, the tag must be configured with the config command.\n"],null,["# Set up the Google tag with gtag.js\n\nThe Google tag is a single tag you can add to your website to use\nGoogle measurement and advertising products like Google Ads, Google\nAnalytics, Campaign Manager, Display \\& Video 360, and Search Ads 360. Instead of\nmanaging multiple tags for different Google products, you can use the\nGoogle tag across your entire site and connect the tag to multiple destinations.\n\n[Learn more about the Google tag](https://support.google.com/tagmanager/answer/11994839)\n\nThis page explains how to set up and deploy a Google tag on your site using\nthe gtag.js framework. If you're unfamiliar with javascript, we recommend using\n[Google Tag Manager](/tag-platform/tag-manager) instead of gtag.js.\n\nBenefits\n--------\n\nThe best way to measure conversions and optimize the value of your\nGoogle marketing investment is to place tags on every page of your site. By\nimplementing the Google tag across your site, you gain access to the following\nbenefits:\n\n- **Future-proof conversion measurement.** Benefit from the latest features and integrations as they become available so that you are better equipped to continue measuring conversions accurately if changes occur.\n- **Codeless tag management.** Turn on measurement features within Google products without having to manually change the tags on your page.\n- **Faster and easier integration.** Streamlined, simpler implementation and integration with other Google products, such as Analytics and Google Ads.\n- **More accurate conversion measurement.** The Google tag helps you achieve more accurate conversion measurement when cookies are not available and recover conversions not observed today due to industry factors.\n\nAdd the Google tag to your website\n----------------------------------\n\nTo collect data with the Google tag:\n\n1. Open a Google product you use and access the Google tag screen.\n How to find your tag ID in:\n\n - [Google Ads](https://ads.google.com/aw/tagsettings)\n - [Google Analytics](https://support.google.com/analytics/answer/9539598)\n - [Google Floodlight](https://support.google.com/searchads/answer/2466080)\n\n \u003cbr /\u003e\n\n2. Copy your Google tag ID.\n\n3. Paste your Google tag ID in the following code sample. Place the Google tag\n snippet immediately after the opening `\u003chead\u003e` HTML tag on every page you want\n to measure.\n\n \\\u003c!-- Google tag (gtag.js) --\\\u003e\n \\\u003cscript async src=\"https://www.googletagmanager.com/gtag/js?id=\u003cvar translate=\"no\"\u003eTAG_ID\u003c/var\u003e\"\\\u003e\\\u003c/script\\\u003e\n \\\u003cscript\\\u003e\n window.dataLayer = window.dataLayer \\|\\| \\[\\];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '\u003cvar translate=\"no\"\u003eTAG_ID\u003c/var\u003e');\n \\\u003c/script\\\u003e\n\n The `config` command is needed to send data to Google advertisement products.\n Many features require the `config` command to be set on your website, such as\n automatically collected events and conversion linking.\n [Learn more about the config command](https://developers.google.com/tag-platform/gtagjs/reference#config)\n\nVerify the Google tag\n---------------------\n\nTo verify that your tag is sending data:\n\n1. Go to [tagassistant.google.com/](https://tagassistant.google.com/).\n2. Click **Add domain**.\n3. Enter the URL of the website you want to debug, starting with \"https://\" or \"http://\".\n4. Click **Connect**.\n\nWhen you connect Tag Assistant to your website, check if your Google tag ID\nappears in the header **Google tags found** . If Tag Assistant doesn't recognize\nyour tag, find debug tips in the\n[Tag Manager help center](https://support.google.com/tagassistant/answer/10039345)\n\nYou can also access the [tag coverage summary](https://support.google.com/tagmanager/answer/12270036) for an overview of your site's\ntagging status.\n\nNext steps\n----------\n\nNow that you've set up your Google tag, [configure Google products and send event data](/tag-platform/gtagjs/configure)."]]