Skip to content

WebView Data Monitoring

To monitor WebView data in UniApp, you need to integrate the Web Monitoring SDK into the pages accessed by the WebView.

Android only supports offline packaging and uni mini-program scenarios.

Configuration Entry

  • Whether to enable WebView data collection on the RUM side can be controlled by enableTraceWebView and allowWebViewHost in the RUM Configuration.
  • If the WebView loads a web page, please complete the corresponding page integration according to Web Application Access.

Usage Recommendations

  1. First, complete the initialization of the UniApp native SDK and RUM initialization.
  2. Then, integrate the Web SDK into the H5 page loaded by the WebView.
  3. If you only want to track specific domains, you can control the collection scope through the allowWebViewHost whitelist.