-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Operating System on User Agent #43
Comments
thank you. Please check if that new format works and we can make that as default. Btw, are you using version2? Version 1 is not going to be updated going forward. |
I can confirm it works: To test it faster I used the version on Central Repository. Do you plan to upload v2.0? |
In order to dynamically build the user agent string, I'm testing this code now:
which in my case sets |
I will try to upload v2 with beta label over the weekend. |
Excelent! another question: why By the way, comparing with the Google's library, |
Since many times, the env where this library is used may not have access to display to get the stats and that's why it is not set by default. I will look into the screen resolution and colors info. |
oh, you're right, I was thinking only on desktop apps but the library could be used on a server. |
Finally, the second report is available. The OS value didn't worked. So, a simple logic could be applied there to replace Java property value to a valid value. |
Yes, that change worked (I don't know if there is any correlation but when the OS is valid the pageview appears faster on the audience report). I applied this simple logic, but more work is needed to support other OS:
|
Any news on this? I'm experiencing the same issue, will experiment with your previous suggestions! |
Using like this at the moment:
|
Yes ran into the same issue, took me quite a while to find out why my requests are not working. |
I started testing the stable version (v1.1.2) but I think this issue is still present on 2.0.
When sending a post to GA the
userAgent
in my case is:It includes the OS data but I guess the format is not correct or at least is not the one that GA expects.
User Agent Override
The first part is correctly gathered by GA:
Browser:
java
Browser Version:
1.8.0_112-b15
but then the rest is empty:
Operating System:
(not set)
I just made a test overriding the user agent:
Now I have to wait until GA audience reports are available, but I will share if that format works.
The text was updated successfully, but these errors were encountered: