Skip to content
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

Platform / Operating System detection for OS X / Windows / Linux #94

Open
rowsoap opened this issue Dec 1, 2015 · 1 comment
Open

Comments

@rowsoap
Copy link

rowsoap commented Dec 1, 2015

Unity's WWW class does not provide a correct user-agent that google analytics can understand.
All call coming from GoogleAnalyticsMPV3.cs, Google Analytics backend does not report what Platform or Operating system the call comes from.

I have a temporary fix that Injects into the header of all WWW requests with a user-agent that Google Analytics can understand, currently only supporting OS X and Windows.
GoogleAnalyticsMPV3.txt

@belm0
Copy link
Contributor

belm0 commented Jan 30, 2016

I've implemented similar, but note there's no need to mess with request headers. Analytics allows user agent override via a URL parameter. See pull request #78.

loonychewy pushed a commit to loonychewy/google-analytics-plugin-for-unity that referenced this issue Apr 14, 2016
…agent

- Implemented using a mixture of code from the following sources
1. googleanalytics#78
1.1 For user agent override
2. googleanalytics#94
2.1 For the user agent string for Windows and OS X.
2.2 Includes a bit of extra code to fix a bug in Unity 4.6 where it reports Windows 10 as Windows 8.1 (6.3.10XXX), where the build number is correct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@belm0 @rowsoap and others