如果用户来自我的另一个网站,我如何知道他们来自哪里?
我有两个网站,网站 A 和网站 B,网站 A 是链接到网站 B 的热点网站,销售发生在网站 B 上。
我们需要知道用户是如何到达网站A并成为网站B的客户(这意味着他买了东西),这样我们就可以确定好的投资来源。
作为开发人员,我可以访问这两个网站的源代码,并可以在它们上实现任何谷歌分析标签。
谢谢,
乔纳森
I have two websites, website A and website B, the website A is a hotsite that is linked to website B, where the sales happen.
We need to know how the user got the website A and turned into a customer in website B(it means he bought something), so we can mesure the good sources to invest.
as the developer, I have access to these two websites source-code and can implement any google-analytic tag on them.
Thanks,
Jonathan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Web 浏览器通常会发送 referrer 标头,其中包含链接到当前页面的页面的 URL 。
您可以在向站点 B 发出的 HTTP 请求中访问此属性,并在站点 A 引用第一个页面加载时以不同的方式跟踪会话。您还可以访问 JavaScript 中的
document.referrer
属性,并使用它操纵您的分析。Web browsers generally send a referrer header, which contains the URL of the page which linked to the current page.
You can access this in the HTTP requests made to site B, and track sessions differently when the first page load is referred by site A. You can also access a
document.referrer
property in JavaScript, and use it to manipulate your analytics.在 Google Analytics 中实现这一点的正确方法是配置跟踪器,以便它们跨域工作。
这将使您能够查看有关转化访问最初来自何处及其购买路径的所有信息。
The correct way to implement this in Google Analytics is to configure the trackers so that they work cross-domain.
This will allow you to see all the information about where the converting visits originally came from and their path to purchase.
让网站 B 上的登陆页面查看引荐来源网址标签,如果其网站 A 则在网站 B 上使用单独的 Google Analytics 实例来处理源自网站 A 的所有会话。
Have the landing page on website B look at the referrer tag and if its website A then use a separate Google Analytics instance on website B for all sessions that were sourced from website A.