Post by account_disabled on Dec 9, 2023 10:49:37 GMT
现在我们的目标是在 Pre-Prod 或 Staging 上测试“ Hello ”标签。 将您的更改发布到预制作中 转到“ 版本 ”面板并按照以下步骤操作: 单击您希望在预生产中发布的版本(在我们的示例中为版本 2) 选择发布到... 将打开一个新窗口: 选择暂存环境 点击发布 如果刷新版本面板,您现在可以看到版本 2 已应用于“ 最新版本 ”和暂存。 让我们检查一下脚本是否有效,并向 预生产站点说“ Hello ”。 转到预生产站点,重新加载页面并打开开发控制台。您将看到一条友好的“你好”消息。 来自开发者控制台的问候消息 在您的生产站点上尝试相同的测试。您不会在控制台中看到消息。事实上,生产仍在使用 GTM 容器的版本 1。 新标签已经过适当测试并且运行良好。我们现在将发布到“ Live ”或制作网站 。 在生产中部署您的营销标签 我们重复之前相同的步骤: 返回版本面板 从版本 2 开始,选择“发布到” 然后选择Live环境。 容器版本 2 现在可用于所有环境。 请记住,您也可以随时恢复到以前的版本。 掌握您的标签部署 将 Google 跟踪代码管理器的环境和版本控制功能结合使用可提供强大的机制。 正如我们刚才所看到的,它并不像您想象的那么复杂。 这种机制允许新的集成在投入生产之前进行测试。这对要。您绝对不想中断生产! 使用 Google 跟踪代码管理器走得更远 本文是Google 跟踪代码管理器与 Analytics 高级配置指南的一部分。 在下面的文章中,我们将了解建立专业网站通常所需的高级概念。 我邀请您通过配置多个 Google Analytics 属性来进一步利用 Google 跟踪代码管理器环境来继续配置您的网站。
点击在 Twitter 上分享(在新窗口中打开)点击在 Facebook 上分享(在新窗口中打开)点击在 LinkedIn 上分享(在新窗口中打开) 发表于未分类 关于作者: 塞缪尔·施密特 查看塞缪尔·施密特的所有帖子 个人网站推特 行业电邮清单 简介脸书个人资料Instagram 个人资料领英个人资料 文章导航 上一篇文章 使用 Google 跟踪代码管理器安装和配置 Google Analytics 下一篇 在 Google 跟踪代码管理器中配置多个 Google Analytics 属性 (4 条评论) Ping:在 Google 跟踪代码管理器中配置多个 Google Analytics 属性(教程) Ping:使用跟踪代码管理器安装和配置 Google Analytics(教程) 安德烈斯·戈麦斯 2020 年 11 月 1 日上午 10:34 您好,首先非常感谢您的教程,非常棒。关于您要替换的代码片段,我还有另一个问题。难道就没有办法自动实现吗? 塞缪尔·施密特 2020 年 11 月 4 日下午 1:09 你能告诉我你想要自动化什么吗? 加入对话 读 博客 通使用 Google 跟踪代码管理器安装和配置 Google Analytics 您想知道如何配置 Google 跟踪代码管理器以使用 Google Analytics 分析您的网站。不要再继续了,您已经到了正确的页面。 在本文中,我们将逐步了解如何配置 Google Analytics 和 Google 跟踪代码管理器,以便这些工具协同工作。 我们将从Google Analytics 和 Google Tag Manager 的基本安装开始。 然后我们将在 Google 跟踪代码管理器中配置第一个 Analytics 代码。 在本教程结束时,您将拥有一个带有 Google Analytics 的 Google 跟踪代码管理器设置,可以与其他营销标签进行更多集成。 内容 Google Analytics 的基本安装 获取 Google Analytics 跟踪 ID 测试Google Analytics是否安装正确 Google 跟踪代码管理器入门 安装 Google 跟踪代码管理器 测试 Google 跟踪代码管理器是否已正确安装 在 Google 跟踪代码管理器中配置 Google Analytics(分析)代码 发布对您网站的更改 使用 Google 跟踪代码管理器走得更远 Google Analytics 的基本安装 如果您有一个网站,这是您需要做的第一件事:设置 Google Analytics。
谷歌分析是一个免费工具(您可以付费购买高级功能),它可以让您分析您的网站流量和访问者的行为。 Google Analytics 的主要功能围绕: 受众:了解您的网站访问者是谁 获取:访问量从何而来 行为:访问者在您网站上的行为方式,他们在页面中的旅程如何进行 转化:衡量你的行动的影响 谷歌分析用户界面 获取 Google Analytics 跟踪 ID 要跟踪对您网站的访问,您需要在网页上放置一段简单的代码。此代码是 Google Analytics 跟踪 ID。要获取此代码,请按照以下步骤操作: 创建一个谷歌分析帐户 选择网络(默认) 最后填写您的网站名称和 URL 单击“获取跟踪 ID ” 如何获取 Google Analytics 跟踪 ID 当您看到下面的屏幕时,只需将此代码复制并粘贴到您网站页面的 HTML 标头中即可。 谷歌分析跟踪ID 测试Google Analytics是否安装正确 测试 Google Analytics 安装的最佳方法是安装名为Tag Assistant的 Google Chrome 扩展程序。 Tag Assistant 可帮助检查多个 Google 标签的安装,包括 Google Analytics、Google 标签管理器等。在本教程的后面部分我们将再次需要它。 要检查您的标签是否正常工作,请单击网络浏览器中的 Tag Assistant 扩展。 带有标签助手的 Google Chrome 伟大的。您已连接您的网站和 Google Analytics。一切正常。让我们继续安装 Google 跟踪代码管理器。 Google 跟踪代码管理器入门 借助 Google 跟踪代码管理器,您可以在一个位置管理所有营销代码(代码段、跟踪代码),只需点击几下即可将它们部署到整个网站。 安装 Google 跟踪代码管理器后,您将不再需要致电 IT 部门来修改网站代码。您将自行安装与标签配合使用的营销工具,例如网络分析工具。 Google 跟踪代码管理器提供了强大的功能,例如: 标签:创建任何营销标签并使用各种现有集成。 触发器:设置何时执行“片段”。 版本:定义配置的多个版本并将它们部署在不同的网站上。 您可以在此处获取有关 Google 跟踪代码管理器基础知识的更多详细信息。 安装 Google 跟踪代码管理器 在以下步骤中,我们将安装 Google 标签管理器,然后使用 Google Analytics 配置第一个标签。事实上,Google 跟踪代码管理器本身就是一个空壳。 创建新的Google 跟踪代码管理器帐户 输入帐户名和容器名称 选择 Web 作为目标平台 单击创建 如何安装谷歌跟踪代码管理器 弹出窗口邀请您将一段代码复制到网站的每个页面上。按照说明进行操作。 安装 Google 跟踪代码管理器 请小心,并准确复制每页 <HEAD> 和 <BODY> 中的两段代码。这不是可选的! Google Tag Manager:在每个页面上准确复制两段代码 测试 Google 跟踪代码管理器是否已正确安装 我们将使用与 Google Analytics 相同的方法。返回您的网站并单击Chrome 中的Tag Assistant。
点击在 Twitter 上分享(在新窗口中打开)点击在 Facebook 上分享(在新窗口中打开)点击在 LinkedIn 上分享(在新窗口中打开) 发表于未分类 关于作者: 塞缪尔·施密特 查看塞缪尔·施密特的所有帖子 个人网站推特 行业电邮清单 简介脸书个人资料Instagram 个人资料领英个人资料 文章导航 上一篇文章 使用 Google 跟踪代码管理器安装和配置 Google Analytics 下一篇 在 Google 跟踪代码管理器中配置多个 Google Analytics 属性 (4 条评论) Ping:在 Google 跟踪代码管理器中配置多个 Google Analytics 属性(教程) Ping:使用跟踪代码管理器安装和配置 Google Analytics(教程) 安德烈斯·戈麦斯 2020 年 11 月 1 日上午 10:34 您好,首先非常感谢您的教程,非常棒。关于您要替换的代码片段,我还有另一个问题。难道就没有办法自动实现吗? 塞缪尔·施密特 2020 年 11 月 4 日下午 1:09 你能告诉我你想要自动化什么吗? 加入对话 读 博客 通使用 Google 跟踪代码管理器安装和配置 Google Analytics 您想知道如何配置 Google 跟踪代码管理器以使用 Google Analytics 分析您的网站。不要再继续了,您已经到了正确的页面。 在本文中,我们将逐步了解如何配置 Google Analytics 和 Google 跟踪代码管理器,以便这些工具协同工作。 我们将从Google Analytics 和 Google Tag Manager 的基本安装开始。 然后我们将在 Google 跟踪代码管理器中配置第一个 Analytics 代码。 在本教程结束时,您将拥有一个带有 Google Analytics 的 Google 跟踪代码管理器设置,可以与其他营销标签进行更多集成。 内容 Google Analytics 的基本安装 获取 Google Analytics 跟踪 ID 测试Google Analytics是否安装正确 Google 跟踪代码管理器入门 安装 Google 跟踪代码管理器 测试 Google 跟踪代码管理器是否已正确安装 在 Google 跟踪代码管理器中配置 Google Analytics(分析)代码 发布对您网站的更改 使用 Google 跟踪代码管理器走得更远 Google Analytics 的基本安装 如果您有一个网站,这是您需要做的第一件事:设置 Google Analytics。
谷歌分析是一个免费工具(您可以付费购买高级功能),它可以让您分析您的网站流量和访问者的行为。 Google Analytics 的主要功能围绕: 受众:了解您的网站访问者是谁 获取:访问量从何而来 行为:访问者在您网站上的行为方式,他们在页面中的旅程如何进行 转化:衡量你的行动的影响 谷歌分析用户界面 获取 Google Analytics 跟踪 ID 要跟踪对您网站的访问,您需要在网页上放置一段简单的代码。此代码是 Google Analytics 跟踪 ID。要获取此代码,请按照以下步骤操作: 创建一个谷歌分析帐户 选择网络(默认) 最后填写您的网站名称和 URL 单击“获取跟踪 ID ” 如何获取 Google Analytics 跟踪 ID 当您看到下面的屏幕时,只需将此代码复制并粘贴到您网站页面的 HTML 标头中即可。 谷歌分析跟踪ID 测试Google Analytics是否安装正确 测试 Google Analytics 安装的最佳方法是安装名为Tag Assistant的 Google Chrome 扩展程序。 Tag Assistant 可帮助检查多个 Google 标签的安装,包括 Google Analytics、Google 标签管理器等。在本教程的后面部分我们将再次需要它。 要检查您的标签是否正常工作,请单击网络浏览器中的 Tag Assistant 扩展。 带有标签助手的 Google Chrome 伟大的。您已连接您的网站和 Google Analytics。一切正常。让我们继续安装 Google 跟踪代码管理器。 Google 跟踪代码管理器入门 借助 Google 跟踪代码管理器,您可以在一个位置管理所有营销代码(代码段、跟踪代码),只需点击几下即可将它们部署到整个网站。 安装 Google 跟踪代码管理器后,您将不再需要致电 IT 部门来修改网站代码。您将自行安装与标签配合使用的营销工具,例如网络分析工具。 Google 跟踪代码管理器提供了强大的功能,例如: 标签:创建任何营销标签并使用各种现有集成。 触发器:设置何时执行“片段”。 版本:定义配置的多个版本并将它们部署在不同的网站上。 您可以在此处获取有关 Google 跟踪代码管理器基础知识的更多详细信息。 安装 Google 跟踪代码管理器 在以下步骤中,我们将安装 Google 标签管理器,然后使用 Google Analytics 配置第一个标签。事实上,Google 跟踪代码管理器本身就是一个空壳。 创建新的Google 跟踪代码管理器帐户 输入帐户名和容器名称 选择 Web 作为目标平台 单击创建 如何安装谷歌跟踪代码管理器 弹出窗口邀请您将一段代码复制到网站的每个页面上。按照说明进行操作。 安装 Google 跟踪代码管理器 请小心,并准确复制每页 <HEAD> 和 <BODY> 中的两段代码。这不是可选的! Google Tag Manager:在每个页面上准确复制两段代码 测试 Google 跟踪代码管理器是否已正确安装 我们将使用与 Google Analytics 相同的方法。返回您的网站并单击Chrome 中的Tag Assistant。