googleanalytics / google-analytics-plugin-for-unity

Google Analytics plugin for the Unity game creation system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

rowsoap opened this issue · comments

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

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.