Debugging & Troubleshooting¶
Dxtra Tag Manager includes a debug overlay for real-time visibility into tag execution, rule evaluation, and event tracking.
Enabling Debug Mode¶
Add #dxtra-debug to any URL on your site:
Requirements
- You must be logged in to your Dxtra account in the same browser
- The Tag Manager script must be installed on the page
Debug Overlay¶
The debug panel appears as a floating overlay with these tabs:
Status of all tags in the current revision: loading status, errors, and execution timing.
Real-time rule evaluation showing which rules matched, condition results, and actions executed.
Live event stream with event properties and timestamps.
Current data layer state and change history.
Dxtra system messages, JavaScript errors, and performance warnings.
Script loading metrics, rule evaluation timing, and network request analysis.
Tag Status Indicators¶
| Status | Meaning |
|---|---|
| Loaded | Tag executed without errors |
| Partially Loaded | Tag loaded with warnings |
| Failed | Tag failed due to errors |
| Loading | Tag currently loading |
| Missing Placement | Placement tag code not found on page |
Click any tag to view loading time, error messages, dependencies, and which rules caused it to fire.
Rule Evaluation¶
The debug overlay shows rule evaluation in real time:
[12:34:56] Rule Group: "Page View Tracking"
Rule: "All Pages"
Event: Page View (fired)
Condition: URL exists (true)
No exceptions
-> Action: Execute analytics tag
Result: FIRED (executed 3 actions)
Verifying Installation¶
Open the browser console and check:
// Check if Tag Manager loaded
console.log('Dxtra loaded:', typeof window.dxtra !== 'undefined');
// Check if analytics API is available
console.log('Analytics ready:', typeof window.dxtraAnalytics?.track === 'function');
Send a Test Event¶
if (window.dxtraAnalytics) {
window.dxtraAnalytics.track('debug_test', {
timestamp: new Date().toISOString(),
page: window.location.href
});
console.log('Test event sent');
}
Common Issues¶
Installation Issues¶
| Issue | Solution |
|---|---|
| Script not loading | Verify the script tag points to https://tagmanager-edge.dxtra.ai/tm.js |
| CSP blocking | Add tagmanager-edge.dxtra.ai to your Content Security Policy script-src directive |
| Mixed content warnings | Ensure all scripts use HTTPS |
| Network timeout | Check firewall rules allow *.dxtra.ai domains |
Allowlist these domains
tagmanager-edge.dxtra.ai-- script deliverytagmanager-api.dxtra.ai-- API communicationstagmanager.dxtra.ai-- dashboard
Rules Not Firing¶
- Check event configuration -- verify the event name matches what the page sends
- Validate conditions -- use debug mode to see condition evaluation results
- Review exceptions -- ensure exceptions are not inadvertently blocking the rule
- Test with manual events -- trigger a test event from the console
Rules Firing Too Often¶
- Check repeatability settings -- disable repeatability or set a delay
- Look for duplicate events -- SPA route changes can fire multiple page views
- Check for multiple installations -- ensure the script is only included once
Tags Failing to Load¶
Check for CSP violations in the browser console:
window.addEventListener('securitypolicyviolation', function(e) {
console.warn('CSP Violation:', e.violatedDirective, 'Blocked:', e.blockedURI);
});
Analytics Not Recording¶
- Check consent status -- Dxtra's built-in analytics works without consent, but third-party tags require it
- Verify the script variant -- use
tm.jsfor full Tag Manager oranalytics.jsfor analytics only - Check the dashboard -- data may take a few minutes to appear
Testing Workflow¶
Pre-Launch Checklist¶
- Development: Test all tags and rules using debug mode
- Staging: Deploy a finalized revision and verify with production-like conditions
- Cross-browser: Test in Chrome, Firefox, Safari, and Edge
- Mobile: Verify on mobile browsers
- Consent flows: Test with consent granted, denied, and changed mid-session
Post-Launch Monitoring¶
- Monitor the browser console for
[Dxtra]prefixed errors - Check the analytics dashboard for data anomalies
- Verify conversion events are recording correctly
Support¶
If you cannot resolve an issue:
- Email: support@dxtra.ai (include "Tag Manager Debug" in subject)
- Include: screenshots from debug mode, console errors, and browser/OS details
Continue to Privacy Features for Dxtra Tag Manager's privacy-first design and compliance capabilities.