1. Knowledge Base
  2. Search & Replace Script

What is the manual scan?

Single-page applications and AJAX requests

One unique feature of web applications and pages with AJAX requests that load additional elements after the page itself has loaded is that the tracking library cannot independently detect that additional page elements have loaded.

As a workaround, automatic searching of the website can be deactivated in the Control Panel.

To enable telephone numbers to be replaced in the loaded elements, you must tell the tracking library to search the page again once all of the elements have loaded.

You can do so by running the following JavaScript code after the successful execution of the AJAX request:



// Test whether the tracking library has already loaded

if (mtls.loaded) {

    // carry out the website scan





If you know exactly which DOM element has been loaded, you can submit it to the scan function.

This reduces the runtime of the search function.