Reputation: 6820
I have successfully installed firebase analytics and crashlytics into my iOS app.
The question I have is do I need to add anything to buttons in SwiftUI to get them to register as clicks?
Basically we would like to know what shows are most popular as well as what episodes.
The way we set it up in SwiftUI is with Button
and tapGuestures
.
I can't really find any clear "how to" docs.
Upvotes: 0
Views: 2493
Reputation: 599956
Firebase does not automatically log analytics events when a user clicks a button. If you want to track those events, you'll have to log the event in your application code.
From the documentation, that's look like:
Analytics.logEvent("share_image", parameters: [
"name": name as NSObject,
"full_text": text as NSObject
])
Upvotes: 1