What is the manual scan?
Search & Replace Script
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:
MANUAL SCAN:
// Test ob die Tracking-Bibliothek schon geladen ist
if (mtls.loaded) {
// ausführen des Webseitenscans
mtls.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.
SCAN WITH ELEMENT
mtls.scan(window.document.getElementById('id_des_geladenen_elements'));