Using the Analytics Debugger

The Analytics Debugger (debugger) is a feature of the analytics JavaScript library. The debugger output is an alert message that shows each time information is provided to the JavaScript library for submission.

To turn on the debugger, include the following as the URL for a browser favorite or bookmark, and access that bookmark:

JavaScript:dw.ac.setDebugEnabled(true);

The debugger uses a session cookie to track that it was turned on. When it's turned on, it remains on for the rest of the browser storefront session. If the browser is closed, or the session otherwise comes to an end, it turns off automatically.

To manually turn it off, include the following as a separate bookmark:

JavaScript:dw.ac.setDebugEnabled(false);

The information shown in the alert messages is exactly what is provided by the template for submission to Salesforce B2C Commerce, but doesn't prove that it was actually sent. If the debugger shows that information was submitted, but data was not collected, you can contact customer support to validate that the information was received by B2C Commerce.

Troubleshooting

If data collection isn't enabled for the store front, the debugger shows the message:

Analytics data collection is disabled.

If data collection is on and the debugger is enabled, navigating to a page in the storefront shows a window similar to the following:

Message from webpage

s._account="demand"
s.pageName="__internal"
s.visitorID="xU9k5Y57WgjFgMXkGPdD545x9evWirFSSTA="
s.prop1=""
s.prop2="women-footwear"
s.campaign=""
s.events="event3"
s.products=";10002;;;;evar2=women-footwear,;10001;;;;evar2=women-footwear
,;11033;;;;evar2=women-footwear,;10729;;;;evar2=woman-footwear
,;11016;;;;evar2=women-footwear,;11050;;;;evar2=woman-footwear
,;10408;;;;evar2=women-footwear,;10734;;;;evar2=woman-footwear
,;10655;;;;evar2=women-footwear,;10774;;;;evar2=woman-footwear
,;10809;;;;evar2=women-footwear,;10823;;;;evar2=woman-footwear
"
s.eVar1=""
s.eVar5="xU9k5Y57WgjFgMXkGPdD545x9evWirFSSTA="
OK