简体   繁体   English

在第 3 方域的 iFrame 中运行 GTM 事件跟踪

[英]Running GTM Event Tracking in an iFrame on a 3rd party domain

I'm inserting an iFrame into a 3rd party website as part of a browser extension and want to track the interaction of what the user clicks on, along with getting stats of its usage using GA and GTM event tracking.我将 iFrame 作为浏览器扩展的一部分插入到第三方网站中,并希望跟踪用户点击内容的交互,以及使用 GA 和 GTM 事件跟踪获取其使用统计信息。 Does anyone know if this is possible?有谁知道这是否可能?

I guess I need to do something when I'm inserting the iFrame within the extension to add the GTM / GA code?我想当我在扩展中插入 iFrame 以添加 GTM / GA 代码时,我需要做些什么? Is it even possible to do this?甚至有可能做到这一点吗?

Many thanks in advance!提前谢谢了!

well,pls make sure that the site has GTM installed and is running properly, then set your tag in GTM with the trigger for click-all elements.好吧,请确保该站点已安装 GTM 并正常运行,然后在 GTM 中设置您的标签,并触发点击所有元素。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM