Testing & Validation
Complete guide for testing and validating your ClickBeam and SkyBeam tracking implementations. Learn how to verify event capture, debug issues, and ensure production readiness.
Testing Prerequisites
- ClickBeam or SkyBeam installed on your website
- Active API token for tracking
- Access to browser Developer Tools (F12)
- Understanding of basic JavaScript debugging
Step 1: Verify Script Installation
Open Browser Developer Tools
Navigate to your website and press F12
(Windows/Linux) or Cmd + Option + I (Mac)
to open Developer Tools.
Check Console for Initialization
Switch to the Console tab. Look for ClickBeam initialization messages confirming the script loaded successfully.
Expected console output:
✓ ClickBeam initialized successfully ✓ Page view tracked automatically ✓ Session ID: abc123-def456-ghi789
Verify Network Requests
Switch to the Network tab and refresh the page. Filter for "track" to see API requests.
Look for POST requests to /api/track
with 200 OK status codes.
Step 2: Test Event Tracking
Trigger Test Events
Perform actions on your website that should trigger events (form submissions, purchases, button clicks). Monitor the Console and Network tabs for corresponding event tracking calls.
Use Platform Test Mode
Navigate to your advertiser's platform integrations and use the "Test Event" button to fire test events directly. This verifies the platform connection works independently of your website code.
Console Testing Commands
You can also fire test events directly from the browser console during development:
Test page view:
beam('trackPageView', {
event_id: 'test-pageview-001'
});
Test purchase event:
beam('trackPurchase', {
event_id: 'test-purchase-001',
value: 99.99,
currency: 'USD',
transaction_id: 'TEST-TXN-123'
});
Step 3: Verify Events in Intelligence Dashboard
Navigate to Intelligence Reports
From your advertiser dashboard, click "Intelligence" in the navigation menu to view all captured events.
Filter Recent Events
Use the time filter to show "Last Hour" or "Today" to see your test events. Verify they appear with correct event names, timestamps, and source attribution.
Expected event display:
Inspect Event Details
Click on individual events to view complete event data, including all parameters, user data, session information, and source attribution details.
Step 4: Test SkyBeam + ClickBeam Coordination
If you have both SkyBeam and ClickBeam deployed, verify they coordinate correctly for complete attribution.
Check Source Attribution
Events captured by both systems should show dual source attribution in Intelligence Reports.
Page views typically show ["skybeam", "clickbeam"].
Verify Session Matching
All events in a user session should share the same laser_beam_session
ID. This ensures proper journey stitching and attribution across both tracking systems.
Test Multi-Page Journey
Complete a full user journey (homepage → product page → checkout → confirmation) and verify all events are captured with consistent session IDs and proper source attribution.
Step 5: Validate Platform Queue
Configure Event Settings
Navigate to Event Settings and configure at least one event to forward to a platform. Select event type, map parameters, and save the configuration.
Check Queue Status
Navigate to the Queue Management page to see events queued for platform delivery. Verify your test events appear in the queue with correct platform destinations.
Monitor Platform Logs
In your platform integration settings, check the event logs to verify successful delivery to advertising platforms. Look for 200/201 status codes indicating successful API calls.
Testing Strategies
Browser DevTools Testing
Use browser Developer Tools for real-time debugging:
- Console: Check for errors and initialization messages
- Network: Inspect API requests and responses
- Application: Verify cookies and local storage
Trace Logging
Use the Trace Logging system for detailed request flow analysis:
- Track events through entire pipeline
- Identify bottlenecks and failures
- Debug platform API integration issues
Verification Checklist
Production Readiness Checklist
Common Test Scenarios
Scenario 1: E-commerce Purchase Flow
Test Steps:
- Visit product page → verify page_view event
- Add to cart → verify trackAddToCart event
- View cart → verify page_view event
- Initiate checkout → verify trackInitiateCheckout event
- Complete purchase → verify trackPurchase event
- View confirmation → verify page_view event
Expected: All 6 events captured with same session ID, proper source attribution, and complete transaction data.
Scenario 2: Lead Generation Form
Test Steps:
- Visit landing page → verify page_view event
- Fill out contact form → prepare form data
- Submit form → verify trackLead event fires
- View thank you page → verify page_view event
Expected: Lead event includes hashed email/phone, form data captured, thank you page tracked in same session.
Scenario 3: Multi-Page Journey with Platform Attribution
Test Steps:
- Visit site with platform click ID (e.g.,
?gclid=abc123) - Navigate through multiple pages
- Complete conversion event
- Check Intelligence Reports for platform attribution
Expected: Platform click ID captured in first touch, all subsequent events linked to platform, conversion properly attributed.
Troubleshooting Testing Issues
Common Testing Issues
Next Steps
Once testing is complete and all verification checks pass, you're ready for production deployment. If you encounter issues, consult the troubleshooting guide for detailed debugging steps.