gtag.js এর সাথে Google ট্যাগ সেট আপ করুন, gtag.js এর সাথে Google ট্যাগ সেট আপ করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Google ট্যাগ হল একটি একক ট্যাগ যা আপনি Google বিজ্ঞাপন, Google Analytics, ক্যাম্পেইন ম্যানেজার, Display & Video 360, এবং Search Ads 360-এর মতো Google পরিমাপ এবং বিজ্ঞাপন পণ্য ব্যবহার করতে আপনার ওয়েবসাইটে যোগ করতে পারেন। বিভিন্ন Google পণ্যের জন্য একাধিক ট্যাগ পরিচালনা করার পরিবর্তে, আপনি আপনার সমগ্র সাইটে Google ট্যাগ ব্যবহার করতে পারেন এবং ট্যাগটিকে একাধিক গন্তব্যে সংযুক্ত করতে পারেন।
Google ট্যাগ সম্পর্কে আরও জানুন
এই পৃষ্ঠাটি ব্যাখ্যা করে কিভাবে gtag.js ফ্রেমওয়ার্ক ব্যবহার করে আপনার সাইটে একটি Google ট্যাগ সেট আপ এবং স্থাপন করতে হয়। আপনি যদি জাভাস্ক্রিপ্টের সাথে অপরিচিত হন তবে আমরা gtag.js এর পরিবর্তে Google ট্যাগ ম্যানেজার ব্যবহার করার পরামর্শ দিই।
সুবিধা
রূপান্তর পরিমাপ করার এবং আপনার Google মার্কেটিং বিনিয়োগের মান অপ্টিমাইজ করার সর্বোত্তম উপায় হল আপনার সাইটের প্রতিটি পৃষ্ঠায় ট্যাগ স্থাপন করা। আপনার সাইট জুড়ে Google ট্যাগ প্রয়োগ করে, আপনি নিম্নলিখিত সুবিধাগুলিতে অ্যাক্সেস পান:
- ভবিষ্যত-প্রমাণ রূপান্তর পরিমাপ। লেটেস্ট ফিচার এবং ইন্টিগ্রেশনগুলি উপলভ্য হওয়ার সাথে সাথে উপকৃত হন যাতে পরিবর্তনগুলি ঘটলে সঠিকভাবে রূপান্তর পরিমাপ চালিয়ে যেতে আপনি আরও ভালভাবে সজ্জিত হন৷
- কোডহীন ট্যাগ ব্যবস্থাপনা। আপনার পৃষ্ঠায় ট্যাগগুলি ম্যানুয়ালি পরিবর্তন না করেই Google পণ্যগুলির মধ্যে পরিমাপ বৈশিষ্ট্যগুলি চালু করুন৷
- দ্রুত এবং সহজ ইন্টিগ্রেশন. অ্যানালিটিক্স এবং Google বিজ্ঞাপনের মতো অন্যান্য Google পণ্যগুলির সাথে সুবিন্যস্ত, সহজ বাস্তবায়ন এবং একীকরণ।
- আরও সঠিক রূপান্তর পরিমাপ। কুকিজ উপলব্ধ না থাকলে Google ট্যাগ আপনাকে আরও সঠিক রূপান্তর পরিমাপ অর্জনে সহায়তা করে এবং শিল্পের কারণগুলির কারণে আজকে দেখা যায়নি রূপান্তরগুলি পুনরুদ্ধার করতে।
আপনার ওয়েবসাইটে Google ট্যাগ যোগ করুন
গুগল ট্যাগ দিয়ে ডেটা সংগ্রহ করতে:
আপনার ব্যবহার করা একটি Google পণ্য খুলুন এবং Google ট্যাগ স্ক্রীন অ্যাক্সেস করুন। কিভাবে আপনার ট্যাগ আইডি খুঁজে পাবেন:
আপনার Google ট্যাগ আইডি কপি করুন।
নিম্নলিখিত কোড নমুনায় আপনার Google ট্যাগ আইডি পেস্ট করুন। আপনি পরিমাপ করতে চান এমন প্রতিটি পৃষ্ঠায় খোলার <head>
HTML ট্যাগের পরেই Google ট্যাগ স্নিপেট রাখুন।
<!-- 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://" দিয়ে শুরু করে আপনি যে ওয়েবসাইটটি ডিবাগ করতে চান তার URL লিখুন।
- কানেক্ট এ ক্লিক করুন।
আপনি যখন আপনার ওয়েবসাইটে ট্যাগ সহকারীকে সংযুক্ত করেন, তখন আপনার Google ট্যাগ আইডি পাওয়া যায় এমন হেডারে Google ট্যাগ দেখা যাচ্ছে কিনা তা পরীক্ষা করে দেখুন। ট্যাগ সহকারী আপনার ট্যাগ চিনতে না পারলে, ট্যাগ ম্যানেজার সহায়তা কেন্দ্রে ডিবাগ টিপস খুঁজুন
আপনি আপনার সাইটের ট্যাগিং অবস্থার একটি ওভারভিউ জন্য ট্যাগ কভারেজ সারাংশ অ্যাক্সেস করতে পারেন.
পরবর্তী পদক্ষেপ
এখন আপনি আপনার Google ট্যাগ সেট আপ করেছেন, Google পণ্যগুলি কনফিগার করুন এবং ইভেন্ট ডেটা পাঠান ৷
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
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)."]]