Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

The 1st edition of the Target Community Lens newsletter is out now! Click to the right to find all the latest updates
SOLVED

How can I disable all Activities/Test just for my current session

Avatar

Level 2

I'm using an automation and I'd like to disable all activities for the automation runs.

I know we can use the mboxDisable=1 parameter in the URL to hide any activities on the page.  Is there something we can set to disable the activities for the entire session as it clicks from page to page?  

 

Thanks,

nik

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

If you are using the latest at.js (version 0.9.6 or later) you can set a session cookie that will disable mboxes. From the browser console you can run: document.cookie = "mboxDisable=1; path=/";

Hope that helps!

View solution in original post

0 Replies

Avatar

Level 10

Hi,

The use-case doesn't looks to be the ideal one.However we can probably  think of some alternatives like probably turning off global mbox setting in mbox.js.

Regards

Parit Mittal

Avatar

Level 2

Thanks for the reply.

Is there a way to turn off the global mbox just for the current session?

The desire is to have an automated test run on the production site.  There are specific things it will look for that may get disrupted by AB testing and we want to avoid that.

 

nik

Avatar

Level 5

Hi Nik,

As far as I know, you can't disable it as you would like, but I see why you want it. Could you setup your automated test, to re-map the at.js/mbox.js file to a empty js-file on your site, to avoid requests to target?

/Løjmann

Avatar

Correct answer by
Employee Advisor

If you are using the latest at.js (version 0.9.6 or later) you can set a session cookie that will disable mboxes. From the browser console you can run: document.cookie = "mboxDisable=1; path=/";

Hope that helps!

Avatar

Level 2

That sounds like exactly what we are looking for, unfortunately, we're on the mbox.js implementation.

I'll look into upgrading.  I'm not sure why we're not using at.js 😞

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now