Customize the Cordova Application Instrumentation.
For native mobile applications, follow either the iOS Instrumentation or Android Instrumentation instructions. The mobile agents will inject the JavaScript Agent and auto-instrument your mobile application including the auto-instrumentation of the WKWebView.