Skip to main content

Overview

The DebugPlugin helps during development by logging events, validating parameters, and optionally preventing events from being sent.

Installation

Options

boolean
default:"true"
Log all events to the browser console with formatted output.
boolean
default:"true"
Validate event parameters and warn about potential issues.
boolean
default:"false"
Prevent events from being sent to the server. Useful for testing.

Console Output

With logEvents: true, you’ll see detailed logs:

Validation Warnings

With validateEvents: true, the plugin warns about common issues:

Dry Run Mode

With dryRun: true, events are processed but not sent:

Development vs Production

Only enable in development:

Debugging Specific Issues

Missing Event Attribution

Event Queue Issues

Identity Verification

Testing Integration

Use dry run mode for automated tests:

Next Steps

Consent Plugin

Privacy compliance

Auto Track Plugin

Automatic tracking