WSDK initialize includes the ability to pass in an optional parameter that allows for Multiple WebsiteIDs to be activated together, when a new WID is initialized any events still saved are flushed out and sent.
Initialize the WSDK with the parameter isMultipleWebsiteIdMode: true passed every time.
When a user switches to another section of the app then initialize the WSDK again but for the DIFFERENT WebsiteID, and again every time they switch sections/WIDS(does not matter if the WID was initialized before)
Initialize
import co.wunderkind.sdk.Wunderkind
class MainActivity : AppCompatActivity() {
val wunderkind = Wunderkind.getInstance()
override fun onCreate(savedInstanceState: Bundle?) {
wunderkind.initialize(this, myWebsiteID, true)
}
}