Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #7906

    Hello everyone,

    First of all, Happy new year !

    My question is : On wich page do I have to insert this code if I want a pop-up survey to come out when someone is visiting my website for the first time ?

    <script src=””> </script>



    the problem is that you can’t predict the “first” page. Obviously it will be the homepage for most users however if they’re referred by links or search engine results to your website they could land everywhere on your page and maybe they’ll never navigate to your homepage. Because of this fact you need to include the script on every page (I’d include the script in header.php before the closing </head> tag or in footer.php before the closing body tag). Then you need to use cookies or php sessions to check if the user views “the first” page or if he/she already clicked through several pages….

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Add a script (pop-up) on the main page’ is closed to new replies.