Lösung per Javascript:
(Habe ich selbst auf einer Seite im Einsatz und funktioniert) ;)Code Alles anzeigen<script> (function() { const idleDurationSecs = 6; // X number of seconds const redirectUrl = 'https://www.heise.de/tp/'; // Redirect idle users to this URL let idleTimeout; // variable to hold the timeout, do not modify const resetIdleTimeout = function() { // Clears the existing timeout if(idleTimeout) clearTimeout(idleTimeout); // Set a new idle timeout to load the redirectUrl after idleDurationSecs idleTimeout = setTimeout(() => location.href = redirectUrl, idleDurationSecs * 1000); }; // Init on page load resetIdleTimeout(); // Reset the idle timeout on any of the events listed below ['click', 'touchstart', 'mousemove'].forEach(evt => document.addEventListener(evt, resetIdleTimeout, false) ); })(); </script>
PERFEKT! Vielen vielen Dank dafür!