پیشنیازها
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
برای پیاده سازی بازاریابی مجدد پویا، این پیش نیازها را دنبال کنید.
تگ Google و قطعه رویداد بازاریابی مجدد را نصب کنید
با برچسب گذاری سایت خود برای بازاریابی مجدد شروع کنید. میتوانید googleGlobalSiteTag
یا event_snippet
را از API با استفاده از TagSnippet
فیلد conversion_action
بازیابی کنید.
در اینجا مراحل جاسازی برچسب ها در وب سایت خود به صورت دستی آمده است:
برچسب Google و قطعه رویداد بازاریابی مجدد را دریافت کنید.
تگ Google یک کوکی جدید در سایت شما تنظیم می کند که اطلاعاتی را در مورد کلیک تبلیغاتی که بازدیدکننده ای را به سایت شما آورده است جمع آوری می کند و بازدیدکنندگان وب سایت را به لیست های بازاریابی مجدد استاندارد در حساب Google Ads شما اضافه می کند.
برای اطمینان از اینکه برچسبگذاری با بازاریابی مجدد پویا کار میکند، در مرحله ایجاد منبع داده تگ Google Ads ، جمعآوری ویژگیها یا پارامترهای خاص را برای شخصیسازی تبلیغات انتخاب کنید.

برای دستورالعملهای دقیق برای دریافت برچسب Google و قطعه رویداد بازاریابی مجدد، به برچسبگذاری وبسایت خود با استفاده از Google Ads مراجعه کنید.
تگ گوگل را نصب کنید.
شما باید تگ گوگل را در تمام صفحات وب سایت خود که اطلاعات بازاریابی مجدد را ارسال می کنند نصب کنید، اما برای هر حساب گوگل ادز تنها به یک تگ گوگل نیاز دارید. قطعه رویداد را می توان برای ردیابی اقدامات اضافی که باید به عنوان رویدادهای بازاریابی مجدد شمارش شوند استفاده کرد. این قطعه را روی صفحات سایتی که میخواهید ردیابی کنید، درست بعد از تگ Google در بخش <head></head>
نصب کنید.
تگ گوگل با تگ های دیگر مانند تگ های گوگل آنالیتیکس نیز کار می کند. درباره نحوه عملکرد برچسب ها در Google Analytics بیشتر بخوانید .
یک قطعه رویداد را در صفحات سایتی که میخواهید ردیابی کنید، با مقادیر پارامتر سفارشی مربوطه نصب کنید.
پارامترهای سفارشی عناصری در کد تگ بازاریابی مجدد شما هستند که به برچسب شما اجازه میدهند اطلاعات مربوط به موارد یا انتخابهای خاص در وبسایت شما را به حساب Google Ads شما ارسال کند. پارامترهای سفارشی مستقیماً با فیدهای داده کسب و کار مرتبط هستند، جایی که مقادیری را اضافه می کنید که مطابق با اطلاعاتی است که برچسب جمع آوری می کند.
برای استفاده از بازاریابی مجدد پویا، باید از پارامترهای سفارشی که بهعنوان Required
علامتگذاری شدهاند استفاده کنید، همانطور که در رویدادها و پارامترهای بازاریابی مجدد پویا توضیح داده شده است.
وقتی مقدار یک پارامتر سفارشی را به برچسب بازاریابی مجدد خود اضافه می کنید، با فید شما همگام می شود تا همان محصول یا خدمات را در تبلیغات شما که قبلاً توسط همان بازدیدکننده مشاهده شده است نشان دهد.
در اینجا مثالی از نحوه نصب یک قطعه رویداد برای یک سایت خرده فروشی آورده شده است (توجه داشته باشید که ecomm_prodid
شناسه محصول Merchant Center است که با محصول موجود در صفحه مطابقت دارد):
gtag('event', 'page_view', {
ecomm_pagetype: 'product',
ecomm_prodid: 34592212,
ecomm_totalvalue: 29.99,
ecomm_category: 'Home & Garden',
isSaleItem: false
});
برای تعاریف دقیق پارامترها و مقادیر معتبر آنها، رویدادها و پارامترهای بازاریابی مجدد پویا را ببینید.
نام رویدادی که استفاده میکنید (مانند page_view
در مثال بالا) میتواند یک نام رویداد سفارشی به انتخاب شما یا یکی از رویدادهای استاندارد پیشنهادی ما باشد. تا زمانی که پارامترهای داده رویداد ( ecomm_pagetype
، ecomm_prodid
و ecomm_totalvalue
در این مثال) به درستی تنظیم شده باشند، برای اجرای بازاریابی مجدد پویا، نیازی به مطابقت با مقدار خاصی ندارد.
برای مستندات دقیق در مورد پارامترهای سفارشی برای انواع مختلف مشاغل و نحوه عملکرد برچسب Google، به تنظیم ردیابی تبدیل برای وب سایت خود مراجعه کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-26 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-26 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eInstall the Google tag and remarketing event snippet on all website pages to enable dynamic remarketing.\u003c/p\u003e\n"],["\u003cp\u003eWhen setting up the Google tag, ensure you select "Collect specific attributes or parameters to personalize ads" for dynamic remarketing functionality.\u003c/p\u003e\n"],["\u003cp\u003eUtilize custom parameters within the event snippet to send specific product or service information to your Google Ads account for targeted ads.\u003c/p\u003e\n"],["\u003cp\u003eEnsure the custom parameters, such as 'ecomm_prodid', align with your business data feeds for accurate product or service synchronization in ads.\u003c/p\u003e\n"]]],[],null,["# Prerequisites\n\nFollow these prerequisites to implement dynamic remarketing.\n\nInstall Google tag and remarketing event snippet\n------------------------------------------------\n\nBegin by\n[tagging your site for remarketing](//support.google.com/google-ads/answer/2476688).\nYou can retrieve the `googleGlobalSiteTag` or `event_snippet` from the API using\nthe [`TagSnippet`](/google-ads/api/reference/rpc/v21/TagSnippet) of the\n[`conversion_action`](/google-ads/api/fields/v21/conversion_action) field.\n\nHere are the steps for embedding tags in your website manually:\n\n1. **Get the Google tag and the remarketing event snippet.**\n\n The Google tag sets a new cookie on your site which collects information\n about the ad click that brought a visitor to your site and adds website\n visitors to standard remarketing lists in your Google Ads account.\n\n To make sure the tagging works with dynamic remarketing, select **Collect\n specific attributes or parameters to personalize ads** during the step\n **Create the Google Ads tag data source**, as shown below:\n\n For detailed instructions for acquiring the Google tag and remarketing event\n snippet, see\n [Tag your website using Google Ads](//support.google.com/google-ads/answer/2476688).\n2. **Install the Google tag.**\n\n You must install the Google tag on all the pages of your website that\n send remarketing information, but you need only one Google tag for each\n Google Ads account. The event snippet can be used to track additional actions\n that are to be counted as remarketing events. Install this snippet on site\n pages you'd like to track, right after the Google tag in the\n `\u003chead\u003e\u003c/head\u003e` section.\n\n The Google tag also works with other tags such as Google Analytics tags.\n [Read more about how tags work in Google\n Analytics](/analytics/devguides/collection/gtagjs).\n3. **Install an event snippet on site pages you would like to track, with\n corresponding custom parameter values.**\n\n Custom parameters are elements in your remarketing tag code that allow your\n tag to send information about specific items or selections on your website to\n your Google Ads account. Custom parameters are directly related to business\n data feeds, where you add the values that correspond to the information\n the tag collects.\n\n To use dynamic remarketing, you'll need to use the custom parameters marked\n as `Required`, as described in\n [Dynamic remarketing events and parameters](//support.google.com/google-ads/answer/7305793).\n\n When you add the value of a custom parameter to your remarketing tag,\n it will sync with your feed to show the same product or service in\n your ads previously viewed by the same visitor.\n\n Here is an example of how to install an event snippet for a retail site (note\n the `ecomm_prodid` is the [Merchant Center Product\n ID](//support.google.com/merchants/answer/7052112) that corresponds to the\n product on the page): \n\n gtag('event', 'page_view', {\n ecomm_pagetype: 'product',\n ecomm_prodid: 34592212,\n ecomm_totalvalue: 29.99,\n ecomm_category: 'Home & Garden',\n isSaleItem: false\n });\n\n For detailed definitions of the parameters and their valid values,\n see\n [Dynamic remarketing events and parameters](//support.google.com/google-ads/answer/7305793).\n\n The event name you use (such as `page_view` in the above example) can be a\n custom event name of your choosing or one of our recommended standard events.\n It doesn't need to match any specific value for the purpose of implementing\n dynamic remarketing, as long as the event data parameters (`ecomm_pagetype`,\n `ecomm_prodid`, and `ecomm_totalvalue` in this example) are correctly set.\n\n For detailed documentation on custom parameters for different business types\n and how the Google tag works, refer to\n [Set up conversion tracking for your website](//support.google.com/google-ads/answer/12216424)."]]