Breaking

Monday, May 27, 2019

How to move out of QA experience in Adobe Target without manually deleting cache

Exit QA environment/experience, with a simple bookmark?


What is QA URL and where you can find it?


You can say QA URL as a preview of changes that you have made on-page.

Activity QA lets you fully test your Target activities before making them live. The Activity QA functionality includes links to share with team members that never change or require regeneration unless updates made to the experiences or activities. This lets you fully test your activities across the entire user journey.

Where to find QA URL for activity :




Most of the time before making any Target Activity live we load QA URL to check whether all modifications are working fine, and get stuck in the QA environment until you clear cache.

If you don't have any idea that once you open QA you will be in that environment until you clear cache, you will keep debugging why activity changes are reflecting even without making it LIVE.
(Even after you have exited QA URL long back)

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 as a typical visitor.

It's not a big deal to clear cache but if you keep doing it more often it can be a headache to manage some things which are dependent on browser cookies and cache.

Following are the ways you can get out of QA mode :

If you save this code in bookmarks and click it, it will force release you to leave QA mode :

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=")

  }

  }

)();


How to Save it :

Name : *Any Name*

URL : *Paste above code*

Bookmark


Next time whenever you want to get out of QA just click saved bookmark (i.e. Force Exit QA).



Another way to clear cookie for particular site :

Save following code in bookmark and follow same steps as mentioned above :

  1. javascript:(function(){C=document.cookie.split('; ');
  2. for(d='.'+location.host;d;d=(''+d).substr(1).match(/\..*$/))
  3. for(sl=0;sl<2;++sl)
  4. for(p='/'+location.pathname;p;p=p.substring(0,p.lastIndexOf('/')))
  5. for(i in C)if(c=C[i])
  6. {document.cookie=c+'; 
  7. domain='+d.slice(sl)+'; 
  8. path='+p.slice(1)+'/'+'; 
  9. expires='+new Date((new Date).getTime()-1e11).toGMTString()}})();window.location.reload();  


Or easiest way is always open QA in incognito mode 


NOTE : 

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.


Click on below link to learn Adobe target VEC Composer :

Adobe Target Visual Experience Composer (VEC)


For any doubts feel free to ask questions in a comment.




Have a good day ☺✌


Thanks & Regards,

Gauresh Kodag.

6 comments:

  1. Productive information highlighted in this blog, Keep adding useful information
    that will help users across globe.
    Great work

    ReplyDelete
  2. I have entered a insert after js for one of the html element. It works fine, Later I changed script to have new block of js apart from existing. Issue: new code is loaded fine, there is another script tag with block of code , which entered first time. I am really not sure, why page is loading two script tags, when I have only one script and holding onto old script tag. Could you please reply to me on this.

    ReplyDelete
  3. I have entered a insert after js for one of the html element. It works fine, Later I changed script to have new block of js apart from existing. Issue: new code is loaded fine, there is another script tag with block of code , which entered first time. I am really not sure, why page is loading two script tags, when I have only one script and holding onto old script tag. Could you please reply to me on this.

    ReplyDelete
    Replies
    1. hi Sreeni,

      Sometimes target behaves in unexpected way. You can try deleting all modifications and use insert after, again to add script.

      Also,
      If you just want to add script on page, instead of adding it using Insert after you can use Custom Code option in modifications tab.
      This would be more ideal way to add script.

      You can check following post to know how can we add custom code in modifications tab.

      https://gaureshkodag.blogspot.com/2019/05/basic-things-that-beginners-in-adobe.html

      Let me know, If issue still persists.

      Thanks,
      Gauresh.

      Delete
  4. FaceBook Hacker Free Download is brilliant application for those persons who utilize Facebook and desire to hack their under attack Facebook accounts. FB Hacker 5.0 Free Download

    ReplyDelete
  5. Prepare for adventure with our in-depth look at the must-have gear: Best Hiking Backpack for Travel.

    ReplyDelete

Featured Post

[Solved] How to get current location of user using javascript?(Example code)

How to get the current location of a user using javascript? You might think to get a user's location is a difficult task, but it&...

Popular Posts