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

Logging only works in unity, not on android device.

polle-vanhoof opened this issue · comments

All events and timings sent from within the desktop unity play mode arrive perfectly fine. However any events sent from my android device never arrive. I hooked up the debugger and it reports logging the hits just fine:

I have looked everywhere and found no solution. Is there some common problem that could cause this to happen?

I/Unity (15270): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
I/Unity (15270):
I/Unity (15270): Logging event.
I/Unity (15270):
I/Unity (15270): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
I/Unity (15270): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
I/Unity (15270):
I/Unity (15270): Logging timing.
I/Unity (15270):
I/Unity (15270): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
I/Unity (15270):

And ofcourse I solved it immediatly after posting this.
It turns out there was a single whitespace behind my tracking code in the unity editor...

It might be usefull to trim any whitespace from the tracking codes, considering people will almost 100% guaranteed copy paste them from their analytics page, and can easily copy a single white space when doing so. Anyway, problem solved I guess.