Information to help you use the Target QA bookmarklet to force Target to release you from QA mode.
The process to create a bookmarklet varies by browser type and version. Consult your browser’s help or search on the Internet for specific directions.
Because QA mode is sticky, after you browse a website in QA mode, your Target session must expire or you need to have Target release you from QA mode before you can view your site like a typical visitor. Use the QA Target bookmarklet to force yourself out of QA mode.
To use the Target QA bookmarklet, create a bookmarklet containing the following JavaScript code and add it to your browser’s Bookmarks Toolbar:
javascript:(
function () {
if (window.location.href.indexOf('?') != -1) {
var parts = window.location.href.split('at_preview_token',2);
if (parts.length > 1) {
window.location.href = parts[0].concat('at_preview_token=');
} else {
window.location.href = window.location.href.concat("&at_preview_token=")
}
} else {
window.location.href = window.location.href.concat("?at_preview_token=")
}
}
)();
You can also manually force yourself out of QA mode by loading a page on your site with the at_preview_token
parameter with an empty value.
For example:
https://www.mysite.com/?at_preview_token=
In contrast to at.js 1.x, at.js 2.x does not support third-party cookies, and QA mode is only sticky for the first-party domain (by means of a first-party cookie set by at.js). Thus, in at.js 2.x, QA mode session is managed only on the client-side and no QA mode cookies are sent to Target.
To use the Target QA bookmarklet, create a bookmarklet containing the following JavaScript code and add it to your browser’s Bookmarks Toolbar:
javascript:(
function () {
var AT_QA_MODE = 'at_qa_mode=';
var isSet = document.cookie.split(';').some(function (cookie) {
return cookie.trim().startsWith(AT_QA_MODE);
});
if (isSet) {
document.cookie = AT_QA_MODE + ';domain='+window.location.hostname+";Path=/; Max-Age=-0;";
var token = window.location.href.indexOf("?at_preview_token")<0? "&at_preview_token" : "?at_preview_token";
var url = window.location.href.split(token,2)[0];
window.open(url, '_self', 'noreferrer');
}
})();
Click the bookmarklet on your browser’s toolbar.