Code Monkey home page Code Monkey logo

bounce-exchange-alternative's Introduction

Bounce Exchange Alternative alt text

(aka OuiBounce) tests Analytics

A small library enabling you to display a modal before a user leaves your website. This was inspired by BounceExchange.

Support via Gittip

The philosophy behind this project

This library helps you increase landing page conversion rates. From my experience, you can expect a lift of 7% to 15% depending on your audience, traffic type (paid or unpaid) and copy.

Talking about copy... please use OuiBounce to provide value to your visitors. With tools like these it's very easy to create something spammy-looking.

Not sure what I mean by provide value? Here are a few ideas to get your creative juices flowing:

Demo / Example

Installation

You can also read the docs as a GitHub Page.

Download the minified or unminified script and include it on your page. OuiBounce is wrapped by a umd wrapper, so if you are using requirejs/amd or commonjs/browserify, it will still work fine.

Usage

  1. Create a hidden modal
  2. Select the modal with vanilla JavaScript (or jQuery) and call ouibounce

Here's an example:

Without using jQuery

ouiBounce(document.getElementById('ouibounce-modal'));

Using jQuery

ouiBounce($('#ouibounce-modal')[0]);
Options

OuiBounce offers a few options, such as:

  • Sensitivity
  • Aggressive mode
  • Timer
  • Callback

Sensitivity: Define how far the mouse has to be from the window breakpoint. The higher value, the more sensitive. Defaults to 20.

Example

ouiBounce(document.getElementById('ouibounce-modal'), { sensitivity: 40 });

Aggressive mode: By default, OuiBounce will only fire once for each visitor. When OuiBounce fires, a cookie is created to ensure a non obtrusive experience.

There are cases, however, when you may want to be more aggressive (as in, you want the modal to be elegible to fire anytime the page is loaded/ reloaded). An example use-case would be on your Paid landing pages.

Here's how to enable aggressive mode:

ouiBounce(document.getElementById('ouibounce-modal'), { aggressive: true });

Set a min time before OuiBounce fires: By default, OuiBounce won't fire in the first second. You can pass a timer option like so:

ouiBounce(document.getElementById('ouibounce-modal'), { timer: 0 });

Callback: You can add a callback, which will run once OuiBounce has been triggered:

ouiBounce(document.getElementById('ouibounce-modal'), { callback: function() { console.log('OuiBounce fired!'); } });

Multiple options: You can also combine multiple options:

ouiBounce(document.getElementById('ouibounce-modal'), {
  aggressive: true,
  timer: 0,
  callback: function() { console.log('ouiBounce fired!'); }
});

Miscellaneous

bounce-exchange-alternative's People

Contributors

carlsednaoui avatar nilsine avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.