Skip to content
Visit Zaraz on GitHub
Set theme to dark (⇧+D)

Debug mode

Zaraz offers a debug mode to troubleshoot the events and triggers systems. To activate the debug mode you need to create a special debug cookie containing your debug key.

  1. Log in to the Cloudflare dashboard, and select your account and website.

  2. Go to Zaraz.

  3. In the main Zaraz screen, click Settings.

  4. Copy your Debug Key.

  5. Open a web browser and access its Developer Tools. For example, to access Developer Tools in Google Chrome, click View > Developer > Developer Tools.

  6. Click the Console pane and enter the following command to create a debug cookie:

  7. Refresh your browser to see the debug logs. They will appear in the Console pane.

Zaraz’s debug mode is now enabled. However, due to the temporary nature of the Console pane in web browsers, you need to activate the Preserve Log option for the Console pane. If you do not activate this option, you will lose the previous debug information whenever the Console refreshes.

To activate the Preserve Log option in Google Chrome, click the settings cog > Preserve logs.