TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How does Google Analytics, a client-side script, get referring URLs?

2 点作者 mjswensen将近 5 年前
Shower thought: given that Google Analytics is installed by dropping a JavaScript snippet onto the page, how does Google get the referring page when visitors land on the page via link or search result, etc.?

1 comment

Hackbraten将近 5 年前
The script should be able to read `Document.referrer` and post the result to wherever it wants.
评论 #23751182 未加载