Support » Plugin: Split Test For Elementor » Split test pages with custom URLs

  • Resolved clickharder

    (@clickharder)


    I need to split test two pages, however, I need to add a custom parameters to the URL.

    For example.
    I am testing two pages in both English and Spanish

    English Page URL 1: example.com/test1
    English Page URL 2: example.com/test2

    Both of those pages exist and can be selected in the dropdown for the split test.

    What I also need is this:

    Spanish Page URL 1: example.com/test1?lang=es
    Spanish Page URL 2: example.com/test2?lang=es

    Since the page selector is a dropdown, there is no way for me to add the parameters to switch the language to Spanish by default.

    Any suggestions?

    If possible, I also need a short term work around if you can think of one because I need to get the Spanish test up as quickly as possible… Maybe a filter or something where I can add the parameters prior to it redirecting?

    Thanks, love the plugin. Still hoping to see time limits and winning conversion options in the future!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author rocketelements

    (@rocketelements)

    Hi clickharder,

    we had an email correspondence on this topic. For all others. There is a need to modify the plugins source code to get this working as there is no filter for that. If you are interested in this topic we will help under info@rocketelements.io to get a fitting solution.

    The requested features are on our roadmap. So stay tuned 🙂

    I got it working. Thanks for the reply. For anyone else reading this wondering how. I edited the “SendHeadersEvent” file on the plugin.

            $transLang = '';
            if ( strpos( $path, '-lang-es' ) !== false ) {
                $transLang = '?lang=es';
            }
           
            foreach ($test->variations as $variation) {
                if ($variation->id == $targetVariation->id) {
                    wp_redirect(get_permalink($variation->post_id) . $transLang , 302);
                    exit;
                }
            }
    

    Obvious warnings apply. Changes will be overridden on plugin update, etc, etc.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Split test pages with custom URLs’ is closed to new replies.