: Handling visitors computers that don't report languages or countries I added google analytics to the mobile version of my site and three days later it seems that most of the visitors either
I added google analytics to the mobile version of my site and three days later it seems that most of the visitors either do not have a language set or a country code set.
Should I assume every browser everyone has access to will always make a language and country code available to servers that request it when browsing a page off that server? or are there actual legit browsers that don't report such information?
My goal is to block out bad bots and allow guests in because I think these unset values is partly to blame for my extremely low income.
I'm looking for the best way for me to handle this issue.
More posts by @LarsenBagley505
1 Comments
Sorted by latest first Latest Oldest Best
I added google analytics to the mobile version of my site and three days later it seems that most of the visitors either do not have a language set or a country code set.
First be aware that GA only gives you a "processed" view of your actual traffic. It's purpose is to present you with statistically relevant data and only statistically relevant data. It is not in any way a "logging" system.
It is a statistical tool and is only productively used as such.
If it is not presenting data to you it is because it has not processed it yet (which can take up to several days) or because their algorithms have determined the data is not statistically relevant for whatever mathematical reason. see this link where they specifically mention this effect for language.
support.google.com/analytics/answer/2820717?hl=en#BehaviorReports
Should I assume every browser everyone has access to will always make a language and country code available to servers that request it when browsing a page off that server?
The vast majority will pass the users preferred human language(s) in the HTTP Accept-Language header to the server. But, as i said, GA is not a reliable source of that information for you.
There is not yet widespread support for a standard for "country code" or any other form of geo-location. For that you will typically have to use the services of a geo-location service. This can either run on the browser (such as "share location" on Firefox) or run on your web server.
If the mobile browser supports HTML5, it may also support the related GeoLocation API.
or are there actual legit browsers that don't report such information?
Many browser don't supply geolocation information and for those that do, some users switch it off for privacy and other reasons.
Practically no browsers are designed to not use Accept-Language header at all but some browser modes or privacy proxies etc many hide or alter the data.
My goal is to block out bad bots and allow guests in because I think these unset values is partly to blame for my extremely low income.
I'm looking for the best way for me to handle this issue.
The best and only practical way is to add code to your web-site/app that directly read the data you need and acts upon. GA is entirely the wrong tool for the job.
IMPORTANT: Filtering web site/app visitors is a lot more complex than just looking at language/country. I would strongly advise you to research the topic separately in more depth and searching to see if your development platform has existing reliable tools for managing this task rather that trying to invent it all yourself from scratch.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.