به گوگل تگ منیجر مهاجرت کنید
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
برای به دست آوردن بیشترین ارزش از Google Tag Manager، باید همه (یا تا حد امکان) برچسب های موجود خود را به Tag Manager منتقل کنید. مراحل توصیه شده به شرح زیر است:
نقشه سایت خود را (اختیاری)
به این فکر کنید که چه برچسب هایی را ممکن است در حال حاضر در سایت خود مستقر کرده باشید. به این فکر کنید که چه اقدامات (رویدادها) را می خواهید ردیابی کنید و چه داده ها (متغیرهایی) را می خواهید جمع آوری کنید. نقشه ای از برچسب ها، داده هایی که باید جمع آوری شوند، و رویدادها یا صفحاتی را که می خواهید با آن برچسب ها مرتبط کنید ایجاد کنید.
کد Tag Manager را روی سایت خود نصب کنید
هنگامی که سایت خود را نقشه برداری کردید، تگ کانتینر Tag Manager را روی سایت خود نصب کرده و آن را مستقر کنید. برای اطلاعات بیشتر راهنمای نصب را بخوانید.
اضافه کردن رویدادها و متغیرها
نصب Google Tag Manager خود را با استفاده از روش های ذکر شده در راهنمای رویدادها سفارشی کنید.
تگ ها و محرک های مرتبط با آنها را در Tag Manager پیکربندی کنید
وقتی تگ منیجر روی سایت شما نصب شد، باید تگ های سایت خود را به رابط کاربری اضافه کنید. در این زمان منتشر نکنید . به سادگی تگ های سایت خود را در Tag Manager با الگوهای برچسب مناسب و محرک ها اضافه و پیکربندی کنید. درباره محرک ها بیشتر بدانید .
تعویض نهایی مهاجرت
آخرین مرحله جایی است که شما به طور همزمان تگ های قدیمی خود را تعویض کرده و برچسب های خود را در Google Tag Manager منتشر می کنید. در عرض چند دقیقه از یکدیگر، شما می خواهید:
- برچسب های سایت خود را با یک فشار کد حذف کنید
- هنگامی که متوجه شدید این فشار موفقیت آمیز است، دکمه "انتشار" را برای نسخه کانتینر خود فشار دهید.
این روش ممکن است باعث ایجاد شکاف کوچکی در داده ها شود، اما پس از تکمیل مبادله اولیه، شکاف دیگری ظاهر نمی شود. از طرف دیگر، میتوانید سفارش را در اینجا عوض کنید و مدت کوتاهی قبل از اینکه تغییرات سایت شما فعال شود، آن را منتشر کنید. این ممکن است به جای ایجاد یک شکاف داده کوچک، باعث تکثیر داده های جزئی و یکباره شود.
پس از تکمیل انتقال اولیه به Tag Manager، هرگونه نیاز به پیکربندی برچسب بعدی را می توان بدون تغییر کد از طریق رابط Tag Manager انجام داد.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-07-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-07-29 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eMigrate all existing website tags to Google Tag Manager for centralized management.\u003c/p\u003e\n"],["\u003cp\u003eMap your website's tags, data, and events for a smooth transition.\u003c/p\u003e\n"],["\u003cp\u003eInstall Tag Manager code, add events and variables, and configure tags within the interface.\u003c/p\u003e\n"],["\u003cp\u003eSwap out old tags with the new Tag Manager setup to complete the migration.\u003c/p\u003e\n"],["\u003cp\u003eManage future tag configurations without code changes through the Tag Manager interface.\u003c/p\u003e\n"]]],["To utilize Google Tag Manager, migrate existing tags by mapping your site's tags, data, and events. Install the Tag Manager code, then customize it with events and variables. Configure tags and triggers within Tag Manager's interface. Lastly, simultaneously remove old site tags and publish the configured tags in Tag Manager, which you can do in a few minutes. After migration, future tag adjustments occur through Tag Manager's interface without code changes.\n"],null,["# Migrate to Google Tag Manager\n\nTo gain the most value from Google Tag Manager, you should migrate all (or as\nmany as possible) of your existing tags into Tag Manager. The recommended steps\nare as follows:\n\n1. **Map your site (optional)**\n\n Think about which tags you might currently have deployed on your site. Think\n about what actions (events) you want to track and what data (variables)\n you'll want to collect. Create a map of tags, the data to be collected, and\n which events or pages you want to associate with those tags.\n2. **Install the Tag Manager code on your site**\n\n Once you've mapped your site, install the Tag Manager container tag on your\n site and deploy it. Read the [installation guidance](https://support.google.com/tagmanager/answer/14842164) for more information.\n3. **Add Events and Variables**\n\n Customize your Google Tag Manager installation using the methods outlined in\n the [events guidance](/tag-platform/devguides/events).\n4. **Configure tags and their associated triggers in Tag Manager**\n\n Once Tag Manager is installed on your site, you should add your site tags to\n the user interface. DO *NOT* publish at this time. Simply add and configure\n the tags from your site in Tag Manager with appropriate tag templates and\n triggers. [Learn more about triggers](https://support.google.com/tagmanager/topic/7679384).\n5. **Final migration swap**\n\n The last step is where you simultaneously swap out your old tags and publish\n your tags in Google Tag Manager. Within a few minutes of each other, you'll\n want to:\n - Remove your site tags in a single code push\n - Once you know this push is successful, press the \"Publish\" button for your container version.\n\n This method might cause a small gap in data, but once the initial swap is\n complete, no more gaps will appear. Alternatively, you could swap the order\n here and publish shortly before your site changes go live. This might cause\n minor, one-time data duplication instead of a small data gap.\n\nAfter you've completed the initial migration to Tag Manager, any subsequent tag\nconfiguration needs can be handled without code changes via the Tag Manager\ninterface."]]