出站链接跟踪 - Google Analytics' _trackEvent() 和 Omniture 的 s.tl()
我们有一个同时使用 Omniture 和 Google Analytics 的网站。理想情况下,我们希望在两个套件中报告出站链接的点击次数。
我想以“正确的方式”执行此操作,即克服同时请求站点和跟踪像素时发生的竞争条件。请参阅:http://www.gwotricks。 com/test/2009/07/tracking-outbound-links-right-way.html
我可能不会使用“onclick”属性,而是将 trackEvent 绑定到链接的单击事件。
Omniture 的外部链接跟踪通过将 500 毫秒的延迟挂接到 s.tl()
中来克服这种情况:
www. webmetric.org/white_paper/link_tracking.pdf
有没有人尝试在同一个网站上同时执行这两项操作?理想情况下,我想在页面执行之前以适当的时间调用两个跟踪像素,但我不是一个足够大的 Omniture 爱好者,无法真正深入研究它们的代码并在延迟之前挂钩 trackEvent。
We have a site that uses both Omniture and Google Analytics. Ideally, we want to report in both suites on clicks to outbound links.
I'd like to do this the "right way," i.e. overcoming the race condition that occurs when requesting a site and the tracking pixel at the same time. See: http://www.gwotricks.com/test/2009/07/tracking-outbound-links-right-way.html
I probably wouldn't use the "onclick" attribute, instead binding the trackEvent to the link's click event.
Omniture's external link tracking overcomes the condition by hooking a 500ms delay into s.tl()
:
www. webmetric.org/white_paper/link_tracking.pdf
Has anyone tried doing both on the same site? Ideally I'd like to call both tracking pixels with an appropriate amount of time before the page executes, but I'm not a big enough Omniture buff to really have gone in-depth with their code and hook trackEvent in before the delay.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 JavaScript DOM(或者如果您使用它,则使用 jQuery)来绑定事件并利用新的异步 Google Analytics 跟踪代码,您就应该做好准备了。
如果您不想使用 jQuery,JavaScript 事件绑定器的示例代码随处可见。
这样做了好几次,从不干扰,也从不需要使用计时器。
Use JavaScript DOM (or if you use it, jQuery) to bind the events and utilize the new asynchronous Google Analytics tracking code and you should be set.
Sample codes for JavaScript event binders are everywhere if you don't want to use jQuery.
Done this several times, never interfered and never had to use a timer.