使用GTM启用HubSpot的数据层

发布于 2025-02-13 12:09:09 字数 51 浏览 1 评论 0 原文

有什么方法可以使用GTM在网站(内置HubSpot)中启用数据层? 有任何文章或工具吗?

Is there any way to enable Data layers in a website (built-in Hubspot) with GTM?
Is there any article or tool?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ゝ偶尔ゞ 2025-02-20 12:09:12

如果您已经在网站上部署了GTM,则可以使用它。 GTM会自动部署DataLayer。您可以在开发控制台中检查它。

如果您需要将某些东西推入其中,HubSpot列出了其全球可访问的变量在这里JS的存在需要从全球范围中获取这些变量。

是将数据从HubSpot推向数据层的一个示例。

If you already deployed GTM on the site, then you have it. GTM deploys dataLayer automatically. You can check it in the dev console.

If you need to push certain things into it, Hubspot lists its globally accessible variables to be used here but you can as well just use them without dataLayer since GTM has all the JS presence needed to grab those variables from the global scope.

And here is an example of pushing the data from hubspot to the dataLayer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文