Console messages (such as console.log()
and console.error()
) in your site code generate logs. These logs appear in the Wix Logs window. Use these logs to debug your site.
Note In the example below we generate a log by running a console message in our page code. You can also generate logs by running console messages from the backend, web modules, public, or anywhere else in your site.
Follow the instructions below to generate a log every time a site visitor clicks a specific button in your site. Or adapt the example to monitor any part of your site.
Note You can also generate logs when previewing your site, but some log information is available only when you publish your site.
In your live site, navigate to the Test page you created.
(Optional) Open your browser's developer tools to view console messages in your browser.
Click button1.
The console message appears in the browser console.
To view details, click the log in the window.
Note For a detailed description of log information, click here.