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。"],[[["Server-side tagging in Google Tag Manager improves page load times by moving Google Ads remarketing tags from the webpage to the server."],["Before 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."],["The 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."],["Validation involves using Tag Assistant to confirm tag firing and reviewing the console for data transmission errors within the server container preview mode."],["To prevent data duplication after successful setup, remove any identical remarketing tags residing in web containers."]]],[]]