Split test pop up - OR - How to specify one of the active pop over creatives via a Javascript call/v

Hey guys, love the Pop Up plugin!

I would like to split test several simultaneous pop overs - how can I do that?
I tried to leave multiple ones active, and what happens is only the first pop up shows every time on every page load.

Alternatively - is there a way to call specifically one of the active pop ups via a Javascript variable or call in the webpage itself?


  • Mason
    • DEV MAN’s Sidekick

    Hiya Jennifer,

    Let me ask the developer about the possibilities of doing this as I've not seen anyone do it in the past. Would be neat to be able to do A/B testing. I wonder if another plugin designed for that purpose would be able to integrate with our pop up plugin.


  • Jennifer
    • The Incredible Code Injector

    Hi Mason!

    Actually I asked the wrong question here... let's put aside split testing for now, because with all the CDN/caching we do on our sites, even if the plugin DID do split testing it still wouldn't work for us. :slight_smile: we do that ourselves via Google Ad Manager, which is why I need the answer to the next question:

    The one question I would really like to get answered though - and this is probably for the developer of the plugin - is this:

    if i have 3 "pop ups" defined in the pop over plugin... is there a way to call 1 particular one of these in a page via a javascript call, i.e. "active_popup = xxxx" or something like that.

    i'm trying to figure out what code the Pop Ups plugin generates on the wordpress pages to show these pop-overs. To me it looks like this block of code (on our dev site) is this:

    what i don't see in these Javascript calls is a way to specify WHICH of the 3 live pop over creatives i'd like to display... so hoping the plugin developer has an idea how to do this. :slight_smile:


  • Barry
    • DEV MAN’s Mascot

    Hi, have a play with this version and let me know if it helps any. I've marked it as a beta here, but it'll show as version 4.5 when you install it.

    One way to specify a popover, you should declare a javascript variable early in the header of your theme - you can do this manually or via a plugin, but basically you want something like:

    <script type="text/javascript">
    var force_popover = 1;

    Where 1 is the id of the popover you want to force. Alternatively you can add the active_popover query string to the generated url and set that to the id.

  • Jennifer
    • The Incredible Code Injector

    @Barry AWESOME, that worked perfectly, thank you!!

    Here are the details of the proof of concept test if you're interested...

    1.) We just set up a test WP site with this new version PopOver plugin installed, and created 3 individual Pop Ups (a.k.a. creatives to test).

    2.) Then grabbed the JS lines required to call the pop ups and plugged the pop-up generating code into 3 static HTML pages as proof of concept, each one calling a different creative, from the same test wordpress site, by specifying the creative with your "force_popover" JS variable:


    If you view source on these 3, you'll see the "WPMUdev" section close toward the </body>, screenshot: http://www.screencast.com/t/eanISnAHZwCv

    we never run just 1 "creative", it's always a split test.

    now that this works, we'll create the proper pop-over creatives (not just these test ones) and will run it as a campaign from google ad manager (DFP for publishers) on a live site...

    We'll update this thread when we've got it live, to share the details.

    Thanks again for the super fast response and making this work!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.