Skip to main content

Test, debug and troubleshoot the web trackers

To prevent data loss and bad events, it's important to test and validate your tracking implementation. Snowplow provides two main tools for this, which work well together.

Snowplow Inspector for browsers

Use our browser extension to inspect event requests in the browser Developer Tools window.

Snowplow Micro

A lightweight, local Snowplow pipeline ideal for sending test events into. It's used as a Docker container.

Debugger plugin

The debugger plugin logs detailed information about tracked events to your browser's Developer Tools console. For each event, it displays:

  • Event type
  • Schema information for self-describing events and entities
  • All entities attached to the event
  • The complete event payload sent to the Collector

The plugin uses color-coded output to distinguish between different types of information, making it easier to scan through logged events.

note

You may need to enable Verbose logs in your Developer Tools console, as this plugin uses console.debug to output results.

Example console output from the debugger plugin

Install plugin

Tracker DistributionIncluded
sp.js
sp.lite.js

Download:

Download from GitHub Releases (Recommended)Github Releases (plugins.umd.zip)
Available on jsDelivrjsDelivr (latest)
Available on unpkgunpkg (latest)

Note: The links to the CDNs above point to the current latest version. You should pin to a specific version when integrating this plugin on your website if you are using a third party CDN in production.

javascript
window.snowplow('addPlugin',
"https://cdn.jsdelivr.net/npm/@snowplow/browser-plugin-debugger@latest/dist/index.umd.min.js",
["snowplowDebugger", "DebuggerPlugin"]
);

Configuration

The DebuggerPlugin function accepts an optional logLevel parameter that controls the verbosity of console output.

javascript
window.snowplow('addPlugin',
"https://cdn.jsdelivr.net/npm/@snowplow/browser-plugin-debugger@latest/dist/index.umd.min.js",
["snowplowDebugger", "DebuggerPlugin"],
[3] // Log level: 3 = debug (default)
);

The available log levels are:

LevelValueDescription
none0Disables all logging
error1Logs errors only
warn2Logs errors and warnings
debug3Logs errors, warnings, and debug messages (default)
info4Logs all messages

On this page

Want to see a custom demo?

Our technical experts are here to help.