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
WithlogEvents: true, you’ll see detailed logs:
Validation Warnings
WithvalidateEvents: true, the plugin warns about common issues:
Dry Run Mode
WithdryRun: 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