Reputation: 379
When I try setting a Firebase analytics user property from Unity I can only set a string value. (Firebase documentation)
When querying my analytics data with BigQuery I can see that the user_properties field has multiple value options (string, int, float, double):
Would love if someone that succeeded in setting a different type value or someone from Firebase can weigh in. Is this implemented somewhere? If not, then is it planned to be implemented in the Firebase SDK for Unity?
Thanks in advance for any help :)
Versions:
Unity 2018.2.15f1
Firebase 5.5.0
Upvotes: 3
Views: 1484
Reputation: 9821
Short Answer: All property values in Firebase Analytics are strings. BigQuery is making assumptions about those data types.
Those data types are based on the schema(s) BigQuery is using to try and contextualize said data. As far as Firebase Analytics is concerned, all user properties are strings. This is the case with the Unity SDK as well as all other Firebase Analytics SDKs; they only support strings.
This article on BigQuery Schemas might help a bit in understanding how they work but as a quick note, it supports auto-detection of supported datatypes and this is likely why you're seeing non-string data types showing up despite not explicitly configuring them.
Upvotes: 5