Capturing console.log, console.warn, and console.error messages
console.log("Visitor clicked the button");
Lucky Orange will log the "Visitor clicked the button" text, and when playing back the recording of the visitor you will see them click the button and then the "Visitor clicked the button" text will appear in the recording window's console.
This can be very useful for developers trying to track down issues by comparing a recording of a visitor with any debugging console messages.
To enable console logging for all recordings:
- Login to your Lucky Orange site dashboard.
- Click the Settings gear in the top right.
- Click Privacy.
- Check the box under Console Logging.
Or, to enable console logging for a specific user or page(s) on a site:
- Add the
window.__lo_log_console = true;variable somewhere on the page before the Lucky Orange tracking code.