Hacker News new | ask | show | jobs
by scotcha1 1818 days ago
there's probably a lot more context, but this is a pretty common marketing feature

some examples:

https://github.com/carlsednaoui/ouibounce

https://www.hubspot.com/products/marketing/exit-intent

i like how this page describes them more as 'needy' than 'dark', since dark seems to imply immoral

https://www.nngroup.com/articles/needy-design-patterns/

2 comments

I was curious how that works, so I clicked into the ouibounce repo and read the README. I still don't get how it works, but I enjoyed how they flirt with self awareness:

> it's very easy to create something spammy-looking.

...and then they list "good" uses that are... all spammy.

I still don't get how it works

These actions can be used to infer possible intent to leave: scroll up (to reveal address bar on mobile), move mouse toward top of viewport (to move mouse toward address bar), swipe down (to reveal address bar on mobile), loss of UI focus, probably others.

I hate these patterns, and they are 100% appropriately described as dark. I and the other devs spent months at one place arguing with a PM about how janky and broken the third-party intent-to-leave detector they injected using Google Tag Manager without dev involvement made our app feel. (GTM was the product that convinced me Google gave up on not being evil)

Okay, so it's all indirect? I usually just ctrl-w, and beyond the browser native dialog that sites can use to ask if you want to confirm saving your work or something, I wasn't aware of any way to intercept that or do anything about it.
The most common way those exit-intent popups work is to check for when the users' mouse leaves the viewport e.g. https://stackoverflow.com/questions/923299/how-can-i-detect-...
Left out of this post is a form or CTA that follows me on scroll, it doesn't make me feel like it's easier to find the form, it makes me feel like I'm being hounded to give my information.