2 ms·
I'm going to guess: - If you are logged into the Analytics dashboard, then a web-socket has been activated between your browser and GA. For fast lookup, there'
by youeseh 9y ago
I'm going to guess:
- If you are logged into the Analytics dashboard, then a web-socket has been activated between your browser and GA. For fast lookup, there's probably an in-memory hash of GA IDs, web-socket IDs.
SO:
- User visits your webpage / performs some action worth analyzing.
- GA script gets executed; sends request to GA server.
- GA server acknowledges reception and schedules jobs for:
-- storing the hit for associated GA-ID.
-- sending info of hit to websocket associated with GA-ID.