Title: Split Testing?
Last modified: August 21, 2016

---

# Split Testing?

 *  [etech0](https://wordpress.org/support/users/etech0/)
 * (@etech0)
 * [12 years ago](https://wordpress.org/support/topic/split-testing-2/)
 * Hi!
 * Is it possible to do split testing with this plugin? I’d like to have a popup
   after a user is on my website for 6 seconds, and I want to have it show popup
   A 50% of the time, and popup B 50% of the time. Can this be done?
 * Thanks!
 * [https://wordpress.org/plugins/easy-modal/](https://wordpress.org/plugins/easy-modal/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [12 years ago](https://wordpress.org/support/topic/split-testing-2/#post-4952040)
 * As built in functionality no this cannot be done without some work. This is already
   a feature in the works which will be coupled with analytics for tracking opens
   etc.
 * You could create a solution for your needs like so though until the functionality
   is bnilt in.
 * Create to modals (eModal-1, eModal-2)
 * Use a bit of javascript to generate a random selection after 6 seconds and open
   the modal as well as fire a google analytics event to track which was opened,
   which could then be used as part of a goal funnel to track which works better.
 * the JS would look something like.
 *     ```
       setTimeout(function(){
         var modal_id = Math.floor(Math.random() * 2) + 1;
         // Fire google event code here tracking which modal will load from the modal_id variable.
         $('#eModal-'+id).emodal('open');
       }, 6000);
       ```
   
 * Hope this helps, please take a moment to rate and review the plugin and or support
   [here](http://wordpress.org/support/view/plugin-reviews/easy-modal)
 *  Thread Starter [etech0](https://wordpress.org/support/users/etech0/)
 * (@etech0)
 * [12 years ago](https://wordpress.org/support/topic/split-testing-2/#post-4952119)
 * I will give this a try. Do I need to have the pro version for it to work?
 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/split-testing-2/#post-4952151)
 * nope, although this will be built in functionality in upcoming versions with 
   an options panel instead of coding. Will be much more advanced as well but the
   above is free of charge and you can customize it as you see fit.
 * Please take a moment to rate and review the plugin and or support [here](http://wordpress.org/support/view/plugin-reviews/easy-modal)
 *  Thread Starter [etech0](https://wordpress.org/support/users/etech0/)
 * (@etech0)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/split-testing-2/#post-4952197)
 * Thanks for your help. For some reason my modal doesn’t seem to be appearing. 
   I’ve tried to narrow down the possible issue, and this line does not seem to 
   be doing anything:
 *  jQuery(‘#eModal-1’).emodal(‘open’);
 * Can you please help? Thanks!
 *  Thread Starter [etech0](https://wordpress.org/support/users/etech0/)
 * (@etech0)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/split-testing-2/#post-4952211)
 * Do you have any advice for me? Here is the URL where I’m trying to open the modal:
   [http://dev.goinspire.com/](http://dev.goinspire.com/)
 * When I paste this line into the console
    `jQuery('#eModal-1').emodal('open');`
 * I get:
 *     ```
       TypeError: opts is null
       methods.open()easy-m...?b43574 (line 46)
       $.fn.emodal()easy-m...?b43574 (line 279)
       ()debugg...al code (line 1)
       ()debugg...al code (line 1)
       if(themes[opts.theme] === undefined)
       ```
   
 * Please advise asap.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Split Testing?’ is closed to new replies.

 * ![](https://ps.w.org/easy-modal/assets/icon-256x256.png?rev=982657)
 * [Easy Modal](https://wordpress.org/plugins/easy-modal/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-modal/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-modal/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-modal/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-modal/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-modal/reviews/)

## Tags

 * [delay](https://wordpress.org/support/topic-tag/delay/)
 * [Split Testing](https://wordpress.org/support/topic-tag/split-testing/)

 * 5 replies
 * 2 participants
 * Last reply from: [etech0](https://wordpress.org/support/users/etech0/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/split-testing-2/#post-4952211)
 * Status: not resolved