iOS Analytics
If you haven't already, please start with the Analytics Overview below.
📄️ Analytics Overview
PollViewControllerDelegate
You can receive analytics events from the PollViewController by conforming to the PollViewControllerDelegate protocol.
- Swift
extension YourViewController: PollViewControllerDelegate { func didPressViewDetails(option: PollOptionResponse) { // navigate to the details screen for the option let detailViewController = DetailViewController(resourceId: option.resourceId) navigationController?.pushViewController(detailViewController, animated: true) } func didReceiveAnalyticsEvent(event: AnalyticsEvent) { // forward analytics to your system (e.g. Google Analytics) Analytics.track(event: event.name, parameters: event.parameters) } }