How to track users device screen resolution, language and network using firebase analytics

1,303 views
Skip to first unread message

sachin hajare

unread,
May 7, 2020, 8:37:07 AM5/7/20
to Firebase Google Group
Hi, 

I want to track users device screen resolution, language and network in firebase analytics. I am using firebase analytics sdk in unity. 
Please let me know how to implement this. 

Thanks in advance for your help.


Thanks & Regards, 

Paul Ruiz

unread,
May 7, 2020, 7:22:44 PM5/7/20
to Firebase Google Group
I believe you should be able to use something like

// Log an event with a float parameter
Firebase.Analytics.FirebaseAnalytics.LogEvent("resolution", YourResolutionValueHere);


You'd just need to pull that sort of information out of Unity, such as height/width/dpi from the Screen class (https://docs.unity3d.com/ScriptReference/Screen.html)
:)

sachin hajare

unread,
May 8, 2020, 12:06:29 AM5/8/20
to fireba...@googlegroups.com
Hi, 

Thanks for the info, is it possible to track users ip address is there any way to get users ip address. 

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/99f5ff52-3290-4597-9403-c8c461cc67ef%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages