AnalyticsConfig
@objc(BMAAnalyticsConfig)
@objcMembers
public class AnalyticsConfig : NSObject
-
Analytics license you want to use for collecting data
Declaration
Swift
public let licenseKey: String
-
Specifies if failing analytics requests should be resent again.
Declaration
Swift
public let retryPolicy: RetryPolicy
-
selects a strategy how to set the userId on the data
Changes how the userId value is generated
- true: randomly generated at collector creation
- false: generated once, saved on the Device and used in every collector
Set this field to true in order to
- disconnect sessions across collector instances
- remove device identification
Default value:
false
Declaration
Swift
public let randomizeUserId: Bool
-
Disables client side ad tracking
Default value:
false
Declaration
Swift
public let adTrackingDisabled: Bool
-
Url the session data is sent to
Usually this field does not need any change. If you use a proxy and forward the data to the Bitmovin analytics backend provide your url here
Declaration
Swift
public let backendUrl: String
-
Enables tracking of SSAI engagement metrics (quartile level) Default value:
false
It also needs to be enabled on account level, please contact Bitmovin Support to enable it for your account.
Declaration
Swift
public let ssaiEngagementTrackingEnabled: Bool
-
init(licenseKey:
retryPolicy: randomizeUserId: adTrackingDisabled: backendUrl: ssaiEngagementTrackingEnabled: ) Declaration
Swift
public init( licenseKey: String, retryPolicy: RetryPolicy = RetryPolicy.noRetry, randomizeUserId: Bool = false, adTrackingDisabled: Bool = false, backendUrl: String = "https://analytics-ingress-global.bitmovin.com", ssaiEngagementTrackingEnabled: Bool = false )
-
Declaration
Swift
public init( licenseKey: String )