Expand my Community achievements bar.

SOLVED

How to replace DTM Switch in IE and Safari for testing in Staging?

Avatar

Former Community Member

Hi there,

Using DTM (and DTM Switch add-on), I need to be sure about some Login fonctionalities, from my site web, in all commun Browsers.

What do you suggest to turn on 'Staging' in IE (6, 7, 8, 9, 10, 11 and Edge) and Safari?

 

In fact, I found  this JS code but it sent me an undefined message when I tried to use it in the IE Console.

localStorage.setItem('sdsat_stagingLibrary',true);

 

Thanks

Frank

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi Frank,

So first the documentation that explains how t set this is : https://marketing.adobe.com/resources/help/en_US/dtm/t_test_rules_amazon.html

NOTICE: If you copy the command lines as they are directly in the console, it will throw you an error as the single quote from the documentation will not be recognized by the console, so make sure to replace them.

I have tested this command lines and no error was thrown. Make sure that you domain is not a path local to your machine but a real domain or a localhost. 

Once you have checked this do the following: (if an error is thrown make sure to replace single quotes as i do not know how this editor will format them)

1.Open you page and open a console

2.Type in _satellite.settings.isStaging : this should return true if the staging library is set else false

3.If false input the following : localStorage.setItem('sdsat_stagingLibrary', true);

4.Reload the page and then use the same command as in #2 , it should return true

5.Last step is to enable DTM debug mode to see what is fired : _satellite.setDebug('true'); and RELOAD the page

That is all that you need to do.

Please let me know if you face any issue. 

Best regards.

 

Alexis Cazes

 

Senior Technical Support Engineer

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi Frank,

So first the documentation that explains how t set this is : https://marketing.adobe.com/resources/help/en_US/dtm/t_test_rules_amazon.html

NOTICE: If you copy the command lines as they are directly in the console, it will throw you an error as the single quote from the documentation will not be recognized by the console, so make sure to replace them.

I have tested this command lines and no error was thrown. Make sure that you domain is not a path local to your machine but a real domain or a localhost. 

Once you have checked this do the following: (if an error is thrown make sure to replace single quotes as i do not know how this editor will format them)

1.Open you page and open a console

2.Type in _satellite.settings.isStaging : this should return true if the staging library is set else false

3.If false input the following : localStorage.setItem('sdsat_stagingLibrary', true);

4.Reload the page and then use the same command as in #2 , it should return true

5.Last step is to enable DTM debug mode to see what is fired : _satellite.setDebug('true'); and RELOAD the page

That is all that you need to do.

Please let me know if you face any issue. 

Best regards.

 

Alexis Cazes

 

Senior Technical Support Engineer

Avatar

Level 1

Very helpful! thanks for sharing.