Enable and Use Analytics on iOS
Enable analytics in your configuration file using the analytics:true value. The SDK collects analytics in the background and when your app calls SDK methods.
To make sure that the SDK and Marketing Cloud Next track push notifications accurately, call the SDK in your push notification handler method. If you don’t, analytic events can’t track open counts for your push messaging campaigns.