Debugging Bagisto Pixel Tracking
Console logging for effortless verification
Anis Ahmad
Last Update 2 months ago
This Bagisto package has been developed with considering developers workflow in mind. As a result, it supports 3mode of debugging levels.
The debugging is implemented by logging tracking information in browser console. It will also log additional information of event when available.
Debugging stages
Debugging stage is automatically selected based on 2 factors.
- The value of `APP_DEBUG` environment variable
- The selection of "Debug Only" option in admin panel

Based on these 2 points, here is how the package which mode is active now:
`APP_DEBUG` value | "Debug Only" option | Active mode |
Any | ON | Debug Only |
TRUE | OFF | Track and Debug |
FALSE | OFF | Track Only (silent) |
Logging behaviour of modes
Here is the impact of the current debug mode on logging tracking data.
- Perfect for development environments
- Logs tracking data to browser console
- No actual data sent to Facebook ⚠️
- Ideal for testing and development environment
Track and Debug Mode:
- Simultaneous tracking and debugging
- Real data transmission to Facebook
- Console logging for verification
- Suitable for staging environments
Track Only / Silent Mode:
- Clean, performance-optimized tracking
- No debug information displayed
- Ideal for live websites
Clue of current tracking pixel
It'll look something like this: