简体   繁体   中英

Get individual user details in firebase

I'm new to firebase and I recently integrated it to my project. I've logged few events using Analytics.logEvent("event_name", parameters: nil)

This seems to work and I can see data populating in my firebase account. Now I'm trying to get the few details based on individual user these are, exact location(right now it shows only country), session length and last screen of the session. Is it possible to retrieve these details in the free features of the firebase? If so, how do I proceed about it?

This is against the Google's Privacy policy .

You will not, and will not assist or permit any third party to, pass information to Google that Google could use or recognize as personally identifiable information. You will have and abide by an appropriate Privacy Policy and will comply with all applicable laws, policies, and regulations relating to the collection, usage and sharing of information from Users. You must post a Privacy Policy and that Privacy Policy must provide notice of Your use of cookies, identifiers for mobile devices (eg, Android Advertising Identifier or Advertising Identifier for iOS) or similar technology that are used to collect data. You must disclose the use of the Service, and how it collects and processes data.

yes you can use screen tracking in (baseviewcontroller)viewdidappear. exapmle:

    override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated);
    // Google Analytics
    let className = String(describing: type(of: self))
    let tracker = GAI.sharedInstance().defaultTracker
    tracker!.set(kGAIScreenName, value: className)
    let build = (GAIDictionaryBuilder.createScreenView().build() as NSDictionary) as! [AnyHashable: Any]
    tracker?.send(build)

}

agree with policy, however, it is definitely supported by the API, just like it also was in Google Analytics SDK before.

https://firebase.google.com/docs/reference/ios/firebaseanalytics/api/reference/Classes/FIRAnalytics#setuserid

However, I have not used it and I am not sure that Firebase Console allows the same level of drilling down to a single session of a single user as Google Analytics did ... but in Google Analytics is is definitely a very useful feature to drill down to individual user level!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM