Skip to main content

iOS Analytics

If you haven't already, please start with the Analytics Overview below.

PollViewControllerDelegate

You can receive analytics events from the PollViewController by conforming to the PollViewControllerDelegate protocol.

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)    }    }