javascript - Javascript 代码是否通过引荐流量
问题描述
我有一个网站website-A.com ,我在其中添加了另一个网站website-B.com的 Javascript 代码:
<script type="text/javascript" src="website-B.com/js/file.js"></script>
我的问题是:网站-B.com通过这个 JS 代码可以看到我网站的REFERRER流量吗?
即电子邮件营销> 客户点击链接> 他们转到我的网站website-A.com,其中包含源代码中的 JS 代码;website-B.com可以看到流量来自电子邮件营销吗?
太感谢了!
解决方案
You can use document.refferrer
if it's coming from another page or site, but I don't think that works for email...usually you set the link (in the email) with a query params that can be tracked once it hits the target site/page
ie: www.your-site.com?source=email
as the link in the email, when the page loads on your site you check the url for the query params and do whatever you need to do as far as tracking
推荐阅读
- python - 我将如何更新orderedDict 中的每个数据框?
- python - 如何使用 matplotlib.pyplot 格式为每一行设置唯一的颜色
- python - 几乎在那里使用 auto-py-to-exe 冲刺到 .exe
- python - 在python中的列表中添加列表
- google-apps-script - 隐藏的 Google 表格启动脚本?
- python - 为什么不渲染模板
- node.js - 错误:13 内部:序列化失败(使用 Google Cloud Vision Api)
- r - AWS Elastic Beanstalk 上的闪亮服务器与 Docker
- kubernetes - 继承的 EKS 集群,无权运行 kubectl 命令
- scala - 结合两个 EitherT,如果成功则返回第一个,否则返回第二个