The Debug Window loads asynchronously. Open it with Ctrl + Shift + F12 (Windows/Linux) or Command + Shift + F12 (Mac) on any ElasticFunnels page, or click Debugger in the top bar on any builder or code editor page.
Features
🔍 Real-time Monitoring
- Live page and backend event tracking
- Component discovery and interaction monitoring
- Device, viewport, and app state updates every second
🎯 Interactive Debugging
- Component highlighting and navigation
- Direct links to builder interfaces
- Console log capture and filtering
📊 Comprehensive Insights
- Funnel event visualization
- Page builder and events builder shortcuts
- Export page events and debug payloads
Getting Started
Activating the Debug Window
- Open your ElasticFunnels page in a web browser
- Press Ctrl + Shift + F12 (Windows/Linux) or Command + Shift + F12 (Mac) to activate the debug window
- The debug window slides up from the bottom of the screen
Debug Window Tabs
Overview
The Overview tab provides a quick snapshot of your page’s current state:System Information
- Device: Current device type detection
- Screen: Browser window dimensions
- Viewport: Available content area
- User Agent: Browser information
App State
- FID: Funnel ID
- Page ID: Current page identifier
- Brand ID: Associated brand
- Page Events: Number of configured events
- Interactions: Number of tracked interactions
- SIDs: Session identifiers
Events
Monitor your page’s funnel events:Funnel Visualization
- Event hierarchy: Visual representation of your funnel structure
- Event details: Step IDs, data, and next events
- Event flow: How events connect and trigger
Page Events
Inspect backend-evaluated page events (populated by the server during the request):- Refresh: Re-read the current page’s backend events
- Clear: Clear the frontend cache of events for this page
- Export: Download a JSON file with the full backend debug payload
- Status: See whether debug is enabled, total events, event types, last event time, and the current debug key
Script Rule Debugging
The Page Events tab provides comprehensive debugging for Script Rule nodes: Script Rule Information Displayed:- Result:
TRUEorFALSE- which path the flow took - Execution Time: How long the script took to execute (milliseconds)
- Next Path: The branch that was followed (
trueorfalse) - Script Length: Number of characters in your script
- Used Click Data: Whether click data was accessed
- Used IP Whois: Whether geolocation data was loaded
- Has Customer Data: Whether customer information was available
- Device Type: The device type during execution
- Console Messages: All
console.log(),console.warn(), andconsole.error()output from your script - Errors: Full error messages if the script failed
- Script Preview: First portion of your script code
- Full Context: Complete evaluation data with all available variables
- Add
console.log()statements to your script to output variable values - Click “Debugger” in the Page Builder or Page Events interface
- The page opens with Debug Window activated
- Go to Page Events tab
- Find the
script_ruleevent - Click “View Console Messages” to see all your logs
- Check the “Result” to see which path was taken
- Review “Full Context” to see all available data
Funnel
Understand how the current page maps to your funnel:- Brand ID / FID / FNID: Quick references for funnel resolution
- Funnel Builder: Open the funnel builder
- Open Node: Deep link to the node if a node code is available
- Show Step: Fallback deep link based on step information
Interactions
Track user interactions and form submissions:- Interaction list: All tracked interactions on the page
- Component details: CCID, device type, and data
- Focus functionality: Highlight and scroll to interaction elements
- Real-time updates: See interactions as they happen
Components
Manage and debug page components:Component Analysis
- Component list: All components with CIDs
- Element details: Tag names, classes, IDs
- Position data: X/Y coordinates and dimensions
- Visual debugging: Highlight components on the page
Component Actions
- Focus components: Highlight and scroll to specific components
- Builder links: Direct links to component builders
- Batch highlighting: Highlight all components simultaneously
Builders
Quick access to ElasticFunnels builder interfaces:- Page Builder: Direct link to edit the current page
- Events Builder: Configure page events and funnels
- Component Builder: Edit specific components
- Page Information: Brand ID, Page ID, and FID details
Console
Capture and monitor JavaScript console output:- Log capture: Automatically captures console.log, console.warn, and console.error
- Log filtering: View logs by type (info, warning, error)
- Test logging: Generate test logs for debugging
- Export capability: Export logs for analysis
Window Controls
- Resize: Drag the handle at the top edge of the panel to adjust height
- Persist size: The panel remembers its height between sessions
- Open/Close: Use the close button in the header, or press the hotkey again
Usage Examples
Debugging Page Events
- Open the Events tab to see your funnel structure
- Review the event hierarchy to understand the flow
- Check the console for any error messages
Testing Component Interactions
- Navigate to the Components tab
- Click “Highlight All” to see all tracked components
- Click “Focus” on specific components to examine them
- Use the builder links to edit components directly
Exporting Debug Data
Two export options are available:- Header → Export: Downloads a JSON with device info, page events, interactions, and captured console logs
- Page Events → Export: Downloads the backend-evaluated page events and their full contexts
Advanced Features
Data Export
The debug window can export comprehensive debugging data:- Page configuration
- Event data
- Interaction logs
- Console logs
Best Practices
Development Workflow
- Always test events using the manual triggers before going live
- Use component highlighting to verify tracking setup
- Monitor console logs for JavaScript errors
- Export debug data for troubleshooting complex issues
Debugging Troubleshooting
- Check the Overview tab for basic page information
- Verify event configuration in the Events tab
- Ensure components are tracked in the Components tab
- Review console logs for error messages
Troubleshooting
Debug Window Not Appearing
- Check keyboard shortcut: Ensure you’re pressing Ctrl+Shift+F12 (Windows/Linux) or Command+Shift+F12 (Mac)
- Verify page load: Make sure the page has fully loaded
- Check console: Look for any JavaScript errors
Components Not Highlighting
- Refresh components: Click the “Refresh” button in the Components tab
- Check CID attributes: Ensure components have proper
data-cidattributes - Clear and re-highlight: Use the clear and highlight buttons
Funnel Links Not Appearing
- Missing brand or funnel: Ensure
Brand IDandFIDare present in the Overview tab - No node code available: Only “Open Node” is shown when a node code is detected; otherwise, “Show Step” is used
- Page not in funnel: Follow the banner link and review Checkout Redirect Behavior
Debug Window Opens on Wrong Domain
If you opened the Debug Window from the Page Builder and it appears on a different domain than the one you need:When you preview a page or open the Debugger, it opens on the first applicable domain. If your page isn’t assigned exclusively to a specific domain, it may open on the
*.elasticfunnels.io subdomain. This is expected behavior. To preview on another domain, manually change the page URL’s domain and reopen the Debug Window there.- In the already opened Debug Window, go to the Overview tab and copy the Debug Key
- Navigate to the actual domain you want to debug
- Press Ctrl + Shift + F12 (Windows/Linux) or Command + Shift + F12 (Mac) to open the Debug Window on that domain
- Paste the Debug Key when prompted to attach the session to this domain
Related Documentation
- Script Rule - Learn about Script Rules and how to debug them
- Checkout Redirect Behavior - Understand default redirects and funnel assignment
- Page Events - Configure page-level events
- Create Funnel - Build and connect funnels
- Component Tracking - Understanding component IDs