Need this to revert back to homepage. Need to use this feature on a kiosk. Looking for code that will automatically return to the home page if the user has no activity. Is there anyone out there that knows how to do that.
Hoping to get answers to this question as well. Any help appreciated!
Go to Settings at the top and drop down to Tracking & Analytics and then Click the Blue "New Tool on top right of page. Next “Paste the code snippet here” the paste the following there.
Now change the URL to the page you want it to go back to after the time setting. I have mine redirect after 120 seconds. You can go to our site at https://www.rrvvmkiosk.org/donate and after 2 minutes it will go back to the home page of https://www.rrvvmkiosk.org/
Next I changed the Name to “Timer”
Next select “Choose specific pages” to put the code on except your homepage.
Next “Place code in:” “Body - start”
Last select the button “Apply”
Publish the page and make sure and refresh the IE page and wait for the timer on a page other that the homepage. Be sure and not move the mouse or click on anything. This is so when someone walks off from the Kiosk after the timer is finished it will go to the home page. I also run a couple screen saver pictures to prevent screen burn-in when idle. This is thru the Kiosk only so you will not see that on our web page.
Hi, I am very interested in your code with a different ending. I want my user to be logged out after a specific time.
How can I modify your code so " const redirectUrl" is replace by “user logout” ?
Thank in advance !