2
13 Comments

Show a popup before a user is about to leave a page

I am trying to add a newsletter sign up to my site before a user leaves the site. Is there some javascript add in that does this? The default javascript methods activate only once a user has clicked the close tab/browser action. I have seen sites where when your mouse starts moving towards another tab it activates a pop up. Does anyone know a cheap service or an open source add in that does this?

on January 18, 2020
  1. 5

    Please don't do that.
    Please.
    If you want me to subscribe to your newsletter, tell me what I will gain by doing so with a few well written lines on your home/landing page.
    Opening a pop-up when I scroll (or worse, when I leave a page) will just make me hate your product...

    1. 1

      Just testing out ideas right now to see what works for a website. So if it does not get enough traction will kill it. But ya a pop up can be annoying but right now I am at the stage where I am testing out everything, even possible bad ideas to see what clicks.

  2. 2

    IMHO it's better done after a timer and/or page scroll of some depth

    1. 1

      That was my final option. In case other options did not pan out.

  3. 2

    We've built our own in the past, but found that the signups are super low (when people are trying to leave they get annoyed). Don't want to shamelessly self-promote, but that's one of the reasons we created our product Talkative (meettalkative.com). We let you automatically reach out to people fitting various criteria on your website - we're like a more proactive Intercom. LMK if you're interested

    1. 1

      Thanks for that, but your tool looks a little more complicated than what I need right now.

  4. 1

    It's called beforeUnload, it should work but in the past I've found it to be somewhat not reliable(regarding triggering background functions like a timer tracking user's stay).

    Also the behavior seems to be dependent on the browser eg. some requirements like user has to interact with page.

  5. 1

    Think twice before you implement it. Try to turn it on / off and test what works better. @pras2018

    I've experienced using GetSiteKit for my side project. My takeaway is: make sure you do not overuse pop-up features, otherwise, you will fall into the exit loophole.

    1. 1

      Thanks for that, I will check GetSiteKit out. What do you mean by exit loophole?

      BTW interesting site you have going. I am curious do you work with companies that are just starting out?

      1. 1

        I mean people will exit your website without a reason.

        Thank you! You mean idea stage startup? Yes - it’s my day to day job working for the largest seed venture builder.

        1. 1

          Ahh, that makes sense.

          Do you help with the communication part too i.e. how best to communicate the idea to your audience or do you do only the design part when it comes to presentations?

          1. 1

            Oh I thought you mean my day-to-day job haha

            But yea for Zlides - I help startups and aspiring entrepreneurs create the presentation from content, design and storytelling a.k.a communication

  6. 1

    I agree with @Khamsin. Browsers nowadays limit what you can do with these popups (the ones that show before closing the page). You cannot edit the message, nor the title.