Skip to content

organicadigital/conversion-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conversion Modal

This project aims to create a very easy way to open modals based on some events.

The inspiration for this project is creating modal windows that increase conversion rates.

Installation

This lib requires some dependencies:

TODO

Usage

Here you can see usage types. Go on, pick one!

Exit Intent

This type is fired when the user is leaving the page. We're using the awesome lib Ouibounce that abstracts the hard work.

Image of Exit Intent Modal

The magick is here:

  conversionModal("<h2>Please, dont go!</h2><p>I've got something to tell you...</p>", {
    type: 'exit_intent',
    background: 'orange',
    accept_text: 'Really? Tell me more...',
    accept_link: 'http://www.organicadigital.com',
    accept_link_target: '_blank',
    reject_text: 'I dont care.',
    // You can use any Ouibounce arg here
    aggressive: true // Don't use this in production... It will show this modal EVERY time user tries to close the window.
  });

Options

TODO Table with all options

Thanks

Made with <3 and a lot of coffee at Orgânica Digital Innovation.

About

Very easy way to create exit intent popups, scroll based popups, etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published