iOS / tvOS SDK
Bitmovin Analytics enables you to get useful insights into the video usage in your apps. It offers a simple integration with the Bitmovin Player, which is a prerequisite for the following guide.
For more information on how to setup a player, go to the Player getting started guide .
Add the SDK to the Project Using CocoaPods
BitmovinAnalyticsCollector is available through CocoaPods. We depend on cocoapods
version >= 1.4
.
To install it, simply add the following line to your Podfile, while replacing {Version Number}
with the desired tag version number. The available tag versions are listed in bitmovin/bitmovin-analytics-collector-ios and bitmovin/bitmovin-player-ios-sdk-cocoapod github repositories.
After that, install the pod using pod install
.

Add the Analytics SDK to the Project directly
As an alternative to CocoaPods, you can download the latest SDK bundle release from GitHub.
Then, when using Xcode, go to the General
settings page by clicking on your projectin the left sidebar, and add the SDK bundle (BitmovinAnalytics.framework
) under Linked Frameworks and Libraries
.
Instantiate Analytics
First, you need to create the config.

Then, you can add optional configuration parameters:

Allowlist Package Name
In order to use Analytics on your website(s), you have to allowlist the package name of your app for which you want to use it. This is a security mechanism that protects your license from being used elsewhere.
It can be done in our dashboard under Analytics -> Licenses
After the setup is done there is nothing more to do. Events are recorded automatically and you can head over to the analytics dashboard to see statistics.
You can download fully functional code examples from our Github account.