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: false

    Declaration

    Swift

    public let randomizeUserId: Bool
  • Disables ad tracking

    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
  • Declaration

    Swift

    public init(
        licenseKey: String,
        retryPolicy: RetryPolicy = RetryPolicy.noRetry,
        randomizeUserId: Bool = false,
        adTrackingDisabled: Bool = false,
        backendUrl: String = "https://analytics-ingress-global.bitmovin.com"
    )
  • Declaration

    Swift

    public init(
        licenseKey: String
    )