如何在 Mobile Safari 上使用 Omniture 跟踪退出链接?
在 Omniture 中,跟踪退出链接的最佳实践是首先使用 s.tl(this, "e", "Link Name")
发出跟踪调用,然后使用 setTimeout( )
实际打开链接。
在 Mobile Safari 上,使用 setTimeout 打开链接失败,因为该操作不是直接来自用户交互。打开链接的唯一方法是牺牲超时,降低跟踪调用实际执行的可能性。
这个问题有解决方法吗?
In Omniture, there is a best practice of tracking exit links by first issuing the tracking call with s.tl(this, "e", "Link Name")
, and then using setTimeout()
to actually open the link.
On Mobile Safari, opening the link with setTimeout fails because the action didn't come directly from a user interaction. The only way to open the link is to sacrifice the timeout, reducing the likeliness that the tracking call will actually go through.
Is there a workaround for this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只要退出链接是带有 href 属性的标签,就会在 s_code.js 文件中自动跟踪。
如果它们不是标签,您应该使用 s.tl(this , "e" , "PAGE TO BE LOADED") 函数。
正如 Mike 所说,该函数的内置超时设置为 500 毫秒。
亲切的问候,
克劳迪奥.
exit link are tracked automatically in the s_code.js file as long as they are tag with href attribute.
If they are not tag you should use the s.tl(this , "e" , "PAGE TO BE LOADED") function.
As said by Mike this function has a built in timeout setted to 500 millisecond.
Kind regards,
Claudio.
自从我这样做以来已经有一段时间了,但是如果内存正常的话 s.tl() 实际上有它自己的 setTimeout 函数设置为 500 毫秒,所以你可能不需要自己的。
我想你也可以用布尔值来做到这一点:
让我知道这是否有效。
Been a while since I've done this, but if memory serves s.tl() actually has it's own setTimeout function set at 500 milliseconds so you may not need your own.
I think you can also do it with a boolean:
Let me know if that works.