Skip to content

Parallel measurement IOMb & IOMp/ÖWA

The IOMbLib iOS supports parallel operation of sessions of the following measurement systems:

  • IOMb/Census (IOMb Library iOS).
  • IOMp/SZM (INFOnline Library iOS)
  • ÖWA (INFOnline Library iOS)

In the following, it will be shown how the measurements of IOMb as well as IOMp(SZM) and ÖWA can be operated simultaneously.

The prerequisite for this is an integration of the following libraries into their iOS app project:


Xcode: Creation of SessionConfiguration objects for IOMb, SZM and ÖWA as well as initialization of all three sessions

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:
    [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

        startIOMbSession()
        startIOMpSession()
        startOEWASession()
        return true
}

private func startIOMbSession() {
    guard let url = URL(string: "https://data-ef4e2c0163.example.com") else { return }
    let configuration = IOMBSessionConfiguration(offerIdentifier: "OfferIdentifier", baseURL: url)
    IOMBSession.defaultSession(for: .iomb).start(with: configuration)
}


private func startIOMpSession() {
    IOLSession.defaultSession(for: IOLSessionType.SZM).start(withOfferIdentifier: "OfferIdentifier", privacyType: IOLPrivacyType.LIN)
}

private func startOEWASession() {
    IOLSession.defaultSession(for: IOLSessionType.OEWA).start(withOfferIdentifier: "OfferIdentifier", privacyType: IOLPrivacyType.LIN)
}

Xcode: Events in IOMb must be intialized and logged separately from events in the other measurement systems. Here, for example, is the call to a view:

1
2
3
4
5
6
 let iombEvent = IOMBViewEvent(type: .appeared, category: "Home", comment: nil)
 IOMBSession.defaultSession(for: .iomb).logEvent(iombEvent)

 let iolEvent = IOLViewEvent(type: .appeared, category: "Home", comment: nil)
 IOLSession.defaultSession(for: .SZM).logEvent(iolEvent)
 IOLSession.defaultSession(for: .OEWA).logEvent(iolEvent)

Parallel hybrid measurement IOMb & IOMp/ÖWA

In order to support hybrid measurement of IOMb and IOMp/ÖWA in parallel the class IOLWKWebView needs to be utilized by both systems. For IOMb, the method configureWebViewForIOMbHybridMeasure needs to be called:

1
2
let webView = IOLWKWebView()
webView.configureWebViewForIOMbHybridMeasure()

Last update: July 14, 2023