Since moving to Unity 2017/2018 from Unity 5.6, suddenly analytic data to Google Analytics does not arrive anymore.
The server says 200 (ok) and there are no errors whatsoever. If the same url is used in the browser, the hit shows as expected.
When comparing the traffic between a working 5.6 version and a non-working 2018 version, there is almost no difference:
GET
https://www.google-analytics.com/collect?v=1&ul=en&sr=1>> blablathequery
HTTP/1.1
Host: www.google-analytics.com
Accept: */*
Accept-Encoding: identity
User-Agent: UnityPlayer/>> 5.6.6f2 (http://unity3d.com)
X-Unity-Version: >> 5.6.6f2
vs
GET
https://www.google-analytics.com/collect?v=1&ul=en&sr=1>> blablatheexactsamequery
HTTP/1.1
Host: www.google-analytics.com
Accept: */*
Accept-Encoding: identity
User-Agent: UnityPlayer/>> 2018.2.19f1 (UnityWebRequest/1.0, libcurl/7.52.0-DEV)
X-Unity-Version: >> 2018.2.19f1
Content-Type: application/x-www-form-urlencoded
So what gives?
Okay, I actually already know the answer, but I want to help people with the same issue (including future me). Here it comes:
↧