最佳实践:如何跟踪出站链接? [英] Best practice: How to track outbound links?

查看:334
本文介绍了最佳实践:如何跟踪出站链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何跟踪网站的出站链接,因为请求记录在目标服务器上,而不是您的?

How do you track outbound links for your web site, since the request is logged on the destination server, not yours?

推荐答案

您可以将快速JQuery脚本添加到将跟踪外部链接的页面,并可以将它们重定向到您的文件中将跟踪链接然后转发给它的服务器,或添加将在点击外部链接时提交的ajax请求,并以这种方式跟踪它们。

You can add a quick JQuery script to the page that will track external links and can either redirect them to a file on your server that will track the link and then forward to it, or add an ajax request that will submit on click for external links, and track them that way.

请参见此处:
http:/ /www.prodevtips.com/2008/08/19/tracking-clicks-with-jquery-and-google-analytics/

此处:
http://www.justskins .com / development / how-to-track-clicks-on-outgoing-links / 132

这篇关于最佳实践:如何跟踪出站链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆