TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

2 pointsby mjswensenalmost 5 years ago
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

Hackbratenalmost 5 years ago
The script should be able to read `Document.referrer` and post the result to wherever it wants.
评论 #23751182 未加载