Google Ads 再营销
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
通过服务器端跟踪代码管理器,您可以将 Google Ads 再营销代码从网页移至服务器。将这些代码转移到服务器可减少要在网页中运行的代码数量,并且可能有助于缩短网页加载时间。
准备工作
本文假定您满足以下条件:
如需设置 Google Ads 再营销代码,请执行以下操作:
打开 Google 跟踪代码管理器
在您的服务器容器工作区中,打开页面左侧的代码菜单。
点击新建以添加新的代码。
选择 Google Ads 再营销代码类型。
输入转化 ID。帮助中心:如何查找转化 ID。
在触发条件中,添加所有网页触发器。

输入代码名称,然后点击保存。

验证您的设置
开始使用服务器容器发送数据后,您可以按照以下步骤查看再营销代码是否正常运行:
- 打开您的网站。
- 在您的 Google 跟踪代码管理器服务器容器中,选择预览。Tag Assistant 将会启动并加载您的服务器容器。
- 代码标签页上会显示触发的所有代码。请务必检查您配置的代码是否成功触发。
- 控制台标签页上会显示数据传输到服务器容器期间发生的所有错误。检查是否存在错误并修正这些错误。
如需获取调试跟踪代码管理器容器方面的帮助,请参阅“预览和调试”帮助。
后续步骤
当您的 Google Ads 再营销代码按预期运行后,您就可以移除网络容器中任何具有相同 ID 的再营销代码,以避免数据重复。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-02-06。
[null,null,["最后更新时间 (UTC):2024-02-06。"],[[["\u003cp\u003eServer-side tagging in Google Tag Manager improves page load times by moving Google Ads remarketing tags from the webpage to the server.\u003c/p\u003e\n"],["\u003cp\u003eBefore implementation, ensure you have admin rights to Google Ads and Google Tag Manager, a configured Google Tag Manager account, a server container setup, and the Google Analytics: GA4 client established.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Ads Remarketing tag is set up within the server container's tag settings by specifying the Conversion ID and triggering it on all pages.\u003c/p\u003e\n"],["\u003cp\u003eValidation involves using Tag Assistant to confirm tag firing and reviewing the console for data transmission errors within the server container preview mode.\u003c/p\u003e\n"],["\u003cp\u003eTo prevent data duplication after successful setup, remove any identical remarketing tags residing in web containers.\u003c/p\u003e\n"]]],[],null,["# Google Ads remarketing\n\nServer-side Tag Manager allows you to move your Google Ads remarketing tags from\nthe web page to the server. Moving these tags to the server will reduce the\namount of code you have to run in the page, and may help improve page load\ntimes.\n\nBefore you begin\n----------------\n\nThis article assumes that you have:\n\n- Admin rights to Google Ads and Google Tag Manager\n- [Set up Google Tag Manager](https://support.google.com/tagmanager/answer/6103696)\n- [Set up a server container](/tag-platform/tag-manager/server-side/overview)\n- [Set up the **Google Analytics: GA4** client](/tag-platform/tag-manager/server-side/send-data)\n\nSet up the Ads Remarketing tag in the server container\n------------------------------------------------------\n\nTo set up the Google Ads Remarketing tag:\n\n1. [Open Google Tag Manager](https://tagmanager.google.com)\n\n2. In your server container workspace, open the **Tags** menu on the left side of the page.\n\n3. Click **New** to add a new tag.\n\n4. Select the **Google Ads Remarketing** tag type.\n\n5. Enter the Conversion ID. [Help Center: How to find the Conversion ID](https://support.google.com/tagmanager/answer/6106960).\n\n6. In **Triggering** , add the **All Pages** trigger.\n\n7. Enter a tag name and click **Save** .\n\nValidate your setup\n-------------------\n\nOnce you start sending data with the server container, you can check to see if\nit's working properly by following these steps:\n\n1. Open your website.\n2. In your Google Tag Manager server container, select **Preview**. Tag Assistant will start and load your server container.\n3. The **Tags** tab shows you all tags that have fired. Make sure to check if the tag you configured fired.\n4. The **Console** tab shows any errors that occurred during the data transmission to the server container. Check for errors and resolve them.\n\nFor more help with debugging Tag Manager containers see [preview and debug help](/tag-platform/tag-manager/server-side/debug).\n\nNext steps\n----------\n\nOnce your Google Ads Remarketing tag works as intended, you can remove any\nRemarketing tags with the same ID that are in a web container to avoid data duplication."]]