Installation Issues
SDK Not Loading
Problem: “Journium is not defined” error in browser console.CDN Script Not Loading
CDN Script Not Loading
Symptoms:Debugging steps:
- Console error:
Uncaught ReferenceError: Journium is not defined - No network request to CDN visible in DevTools
- Check Network tab in DevTools for failed requests
- Verify the CDN URL is accessible in a new browser tab
- Check for Content Security Policy blocking external scripts
- Try loading the script directly:
curl -I https://cdn.journium.com/sdk/v1/journium.min.js
Script Loading Order
Script Loading Order
Problem: Trying to use Journium before the script has loaded.
NPM Installation Issues
Problem: Module not found afternpm install @journium/sdk.
Import Path Issues
Import Path Issues
Build Tool Configuration
Build Tool Configuration
Webpack Configuration:Vite Configuration:Next.js Configuration:
Authentication & Configuration Issues
Invalid API Key
Problem: Authentication fails with invalid API key error.API Key Format Issues
API Key Format Issues
Symptoms:Verification steps:
- Console error:
Invalid API key format - 401 Unauthorized responses
- Events not appearing in dashboard
- Check the Journium dashboard for correct keys
- Ensure you’re using the public key (starts with
pk_) for client-side - Verify the environment (live/test) matches your configuration
Environment Mismatch
Environment Mismatch
Project Not Found
Problem: Project ID not found error.Project ID Issues
Project ID Issues
Common causes:
- Typo in project ID
- Using wrong project (development vs production)
- Project has been deleted or suspended
Event Tracking Issues
Events Not Appearing in Dashboard
Problem: Events are tracked but don’t show up in the dashboard.Event Processing Delay
Event Processing Delay
Normal processing times:
- Real-time events: 10-30 seconds
- Batch processed events: 1-5 minutes
- Dashboard updates: 2-10 minutes
Event Validation Errors
Event Validation Errors
Common validation issues:
Environment Configuration
Environment Configuration
Check environment settings:Dashboard environment switcher:
- Go to your Journium dashboard
- Check the environment selector (top-right)
- Make sure it matches your SDK environment setting
Duplicate Events
Problem: Same events being tracked multiple times.Multiple SDK Initializations
Multiple SDK Initializations
React Component Re-renders
React Component Re-renders
Performance Issues
Slow Page Loading
Problem: Journium SDK is slowing down page load.Script Loading Optimization
Script Loading Optimization
Configuration Optimization
Configuration Optimization
Memory Leaks
Problem: Browser memory usage increases over time.Event Listener Cleanup
Event Listener Cleanup
Queue Management
Queue Management
React Integration Issues
Hook Dependencies
Problem: React hooks causing unnecessary re-renders or stale closures.useEffect Dependencies
useEffect Dependencies
Context Provider Issues
Context Provider Issues
Network & Connectivity Issues
Request Failures
Problem: Analytics requests are failing.CORS Issues
CORS Issues
Symptoms:
- Console error:
CORS policy: No 'Access-Control-Allow-Origin' header - Network requests show as failed in DevTools
Ad Blockers
Ad Blockers
Problem: Ad blockers preventing analytics requests.Detection:Workarounds:
Offline Handling
Problem: Events are lost when users go offline.Offline Queue
Offline Queue
Browser Compatibility Issues
Older Browser Support
Problem: SDK doesn’t work in older browsers (IE11, older Safari).Polyfills
Polyfills
Browser Detection
Browser Detection
Debugging Tools
Debug Mode
Enable detailed logging to diagnose issues:Health Check Function
Browser DevTools Integration
Getting Help
If you’re still experiencing issues after trying these solutions:Contact Support
Email our support team with your specific issue
Community Forum
Ask questions and get help from other developers
GitHub Issues
Report bugs or request features on GitHub
Status Page
Check if there are any ongoing service issues
Support Information to Include
When contacting support, please include:- SDK Version: Check
Journium.getConfig().version - Browser & OS: Include version numbers
- Error Messages: Copy exact error text from console
- Configuration: Your init config (remove sensitive keys)
- Steps to Reproduce: Detailed steps to recreate the issue
- Expected vs Actual Behavior: What you expected vs what happened