Hide Console Messages

Anything you log with console.log, console.info, etc will be included as Console Telemetry in your error reports. Use your console just like a normal server side logging platform. If you’re worried that your users might see things, you can turn off console visibility in production using the console.display

window.TrackJS && TrackJS.install({
    token: "{TOKEN}",
    console: { display: false }
});
Hiding console messages
import { TrackJS } from "trackjs";
TrackJS.install({
    token: "{TOKEN}",
    console: { display: false }
});
Hiding console messages
<script>
window._trackJs = {
    token: "{TOKEN}",
    console: { display: false }
};
</script>
<script src="https://cdn.trackjs.com/releases/current/tracker.js"></script>
Hiding console messages

You’ll still get great context from your console logs, but your users won’t be concerned by what they might see.