lera.cernolev
9/24/2019 - 5:30 PM

Force Load Specific Variation

Instructions: https://d.pr/i/qjmUd9

To open the console, right-click anywhere on page, select "Inspect". From the menu that appears (usually on the right, but might as well show up at bottom/left of the page), select the "Console" tab. Insert the script here. Press "Enter". Refresh the page.

It will show the variation you selected from the script

function setCookie(name,value,days) {
    var expires = "";
    if (days) {
        var date = new Date();
        date.setTime(date.getTime() + (days*24*60*60*1000));
        expires = "; expires=" + date.toUTCString();
    }
    document.cookie = name + "=" + (value || "")  + expires + "; path=/";
}

var pageID = window.__page_id;
var desiredVariation = "A"; // Replace "A" with the variation you want to force load

setCookie('instapage-variant-' + pageID, desiredVariation, 1);