WordPress.org

Ready to get started?Download WordPress

Forums

Easy Modal
Split Testing? (6 posts)

  1. etech0
    Member
    Posted 3 months ago #

    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/

  2. danieliser
    Member
    Plugin Author

    Posted 3 months ago #

    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

  3. etech0
    Member
    Posted 3 months ago #

    I will give this a try. Do I need to have the pro version for it to work?

  4. danieliser
    Member
    Plugin Author

    Posted 3 months ago #

    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

  5. etech0
    Member
    Posted 2 months ago #

    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!

  6. etech0
    Member
    Posted 2 months ago #

    Do you have any advice for me? Here is the URL where I'm trying to open the modal: 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.

Reply

You must log in to post.

About this Plugin

About this Topic