How do Google Analytics collect “user language” da

2019-07-27 02:18发布

问题:

Do GA collect via window.navigator.language on js side or use a Accept-Language header check on server side?

回答1:

Google Analytics reads language preference from the Accept-Language header. See more about this here http://www.lunametrics.com/blog/2013/02/12/languages-report-google-analytics/ and here https://webmasters.stackexchange.com/questions/12942/does-google-analytics-track-users-with-multiple-languages