Skip to content

Parallel measurement IOMb & IOMp/ÖWA

The IOMB Lib Android supports parallel operation of sessions of the following measurement systems:

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

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 in your Android app project:


Session Init: Creation of session setup/configuration for IOMb, SZM and ÖWA and 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
override fun onCreate() {
  super.onCreate()

  startIOMbSession()
  startIOMpSession()
  startOEWASession()

}

fun startIOMbSession() {

    val setup = IOMBSetup(
            offerIdentifier = "site ID", // site ID
            baseUrl = "https://data-ef4e2c0163.example.com"). // Relay base URL

    var IOMB_SESSION = en.infonline.lib.iomb.IOMB.create(setup).subscribe { it ->
            IOMB_SESSION = it
        }

}

fun startIOMpSession() {

     // Get Default Session
    val sessionSZM = en.infonline.lib.IOLSession.getSessionForType(IOLSessionType.SZM)

    // Initialize session
    sessionSZM.initIOLSession(
            this, // application context
            "OfferIdentifier-SZM", // site ID
            BuildConfig.DEBUG, // debug mode on/off
            IOLSessionPrivacySetting.LIN) // Privacy Setting

}

fun startOEWASession() {

    // Get Default Session
    val sessionOEWA = en.infonline.lib.IOLSession.getSessionForType(IOLSessionType.OEWA)

    // Initialize session
    sessionOEWA.initIOLSession(
            this, // application context
            "OfferIdentifier-OEWA", // site ID
            BuildConfig.DEBUG, // debug mode on/off
            IOLSessionPrivacySetting.LIN) // Privacy Setting
}

Event Logging: Events can be logged in all measurement systems in parallel, e.g. the call of a view:

1
2
3
4
5
6
 val event = IOLViewEvent(type = IOLViewEvent.IOLViewEventType.Appeared,
                          category = "MainScreen")

 IOMB_SESSION.logEvent(event)                        
 sessionSZM.logEvent(event)
 sessionOEWA.logEvent(event)

Parallel hybrid measurement IOMb & IOMp (or/and ÖWA)

Attention

To enable parallel hybrid measurement of IOMb and IOMp/ÖWA, it is mandatory to continue using class IOLWebView (from INFOnline Library Android).

In order to activate the IOMb hybrid measurement, an instance of type IOMBHybridBridge has to be created and method configureWebViewForIOMbHybridMeasurement called on that instance.

The IOLWebView instance should be passed as a parameter here:

Kotlin:

1
2
3
4
val IOMBHybridBridge iombHybridBridge = IOMBHybridBridge()
val iolWebView = findViewById(R.id.iol_webview)

iombHybridBridge.configureWebViewForIOMbHybridMeasurement(iolWebView)

Java:

1
2
3
4
IOMBHybridBridge iombHybridBridge = new IOMBHybridBridge();
WebView iolWebView = findViewById(R.id.iol_webview);

iombHybridBridge.configureWebViewForIOMbHybridMeasurement(iolWebView);


Last update: May 10, 2023