Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Ask HN: How does Google Analytics, a client-side script, get referring URLs?
2 points
by
mjswensen
on July 6, 2020
|
hide
|
past
|
favorite
|
2 comments
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.?
Hackbraten
on July 6, 2020
[–]
The script should be able to read `Document.referrer` and post the result to wherever it wants.
mjswensen
on July 6, 2020
|
parent
[–]
There it is. Thank you!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: