carlsednaoui / ouibounce

Increase your landing page conversion rates.
MIT License
2.31k stars 373 forks source link

Timer to track visitor for individual popup #61

Closed c3x closed 10 years ago

c3x commented 10 years ago

Hi, I think it could be nice to have a counter, who track the time, a visitor is online on the website. When he want to leave, the time could be used for individual messages in the popup.

if time =< 10 sec Seems you don't like my site, would you like to tell me why? (Display a response form)

if time => 10 sec and =< 30 sec bla, bla, .. (Display what ever)

if time => 30 sec Seems you like my site, because you stay already a while here. You could sign up for my newsletter to stay up to date ... (Display newsletter form)

Think, you know what I mean ... I there a chance that you will be develop something like this?

carlsednaoui commented 10 years ago

Hi @c3x, thanks for the suggestion!

OuiBounce only handles the "business logic" by providing an event when the user leaves the page. What you do this with said event (such as show a modal) is up to you (that includes the modal content too).

Don't get me wrong, dynamically switching the modal's content based on duration of visit is DEFINITELY a great idea! Unfortunately, I don't think it belongs in OuiBounce.

Let me know if you build this and I'll add it to the README :smile: (and I'll use it on my sites too!!)

Closing this issue for now.