When using the WebView plugin, anonymous tracking setting on the mobile native side (in iOS/Android tracker), will be followed in the sense that the mobile trackers won’t attach additional user and session information to the events. So a client_session entity or the user ID set on the mobile side won’t be attached.
However, it won’t remove identifiers already set on the WebView side. So, if the JS tracker is tracking a user id or a domain_userid, this won’t be removed from the tracker on the mobile side.
If that's desired, you can either,
- add a plugin to the mobile trackers that will manually remove the user/session identifiers from WebView events in case anonymous tracking is enabled.
- pass the anonymous tracking state from the mobile side to the WebView side manually and “sync” the anonymous tracking setting between the mobile and JS tracker.