Show Popup on Entering Funnel/Website
Modified on:Wed, 21 Sep, 2022 at 3:09 PM
This article shows how you can show a popup on entering a website/funnel.
JavaScript:
<script> window.onload = function(){ var myId = “#button-t_VWjJUUG” //Replace this with your button’s css selector var myTime = 2000 //Time in milliseconds setTimeout(function(){ var x = document.querySelectorAll(myId + ” button”); x[0].click(); }, myTime)} </script>
JavaScript
Steps to make this work:
- Add a button in the funnel/website
- In the button actions, select Open popup
- Go to button’s advanced settings and copy the CSS Selector
- Go to settings > tracking code > Footer code
- Paste this script and replace the css selector in the script
- Replace the time with your desired time
- Save and Preview
Did you find it helpful? Yes No