Activity QA bookmarklet for at.js 2.x

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 + '; Path=/; Max-Age=-0;';
            var url = window.location.href.split('at_preview_token',2)[0];
            window.open(url.substring(0, url.length - 1), '_self', 'noreferrer');
        }
    })();

Use the Activity QA bookmarklet

Click the bookmarklet on your browser’s toolbar.

Target


Adobe Target Maturity Webinar Series

Adobe Customer Success Webinars

Tuesday, Feb 4, 4:00 PM UTC

Adobe Target innovations, including GenAI, and best practices on AI-powered personalization and experimentation at scale.

Register