// OpenPanel Debug Script // Run this in browser console to test OpenPanel (function debugOpenPanel() { console.log('=== OpenPanel Debug ==='); // Check if OpenPanel is loaded if (typeof window.op === 'undefined') { console.error('❌ OpenPanel SDK not loaded (window.op is undefined)'); console.log('Script URL should be:', 'https://op.nodecrew.me/op1.js'); return; } console.log('✅ OpenPanel SDK loaded'); console.log('window.op:', window.op); // Check client ID const clientId = window.op._clientId || 'not set'; console.log('Client ID:', clientId); // Try to track an event console.log('Attempting to track test event...'); window.op.track('debug_test', { source: 'console', timestamp: new Date().toISOString() }) .then(() => console.log('✅ Track successful')) .catch(err => console.error('❌ Track failed:', err)); // Check network requests console.log(''); console.log('Check Network tab for requests to:'); console.log('- https://manoonoils.com/api/op/track'); console.log('- https://op.nodecrew.me/api/track'); // Common issues console.log(''); console.log('Common issues:'); console.log('1. Ad blockers (try disabling uBlock/AdBlock)'); console.log('2. CORS errors (check console for red errors)'); console.log('3. Do Not Track enabled in browser'); console.log('4. Private/Incognito mode (some blockers active)'); })();