Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个网页,其中包含一个模式弹出窗口,点击时会显示。我想将链接提供给几个观众,并在打开打开按钮时跟踪每个观众的持续时间,直到他们最终点击关闭按钮。
我们如何跟踪持续时间?
当用户单击按钮(打开和关闭)时,您必须跟踪要发送到 Google Analytics 的事件。
时间由 Analytics 计算出第一次和最后一次交互之间的差异。