Fix common Device Identification SDK errors: CORS issues, API key validation, signal collection timeouts, and confidence drops
Ensure your API key is correct and the endpoint URL is accessible. Check browser console for CORS errors.
// Check for errorstry { const tracio = await Tracio.load({ apiKey: 'your-key' });} catch (e) { console.error('tracio.ai load error:', e.message);}If you see CORS errors in the browser console, ensure your server allows requests from your domain. For enterprise deployments, configure your reverse proxy:
# nginxadd_header Access-Control-Allow-Origin "https://your-app.com";add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";add_header Access-Control-Allow-Headers "Authorization, Content-Type";Low confidence scores typically indicate significant signal changes. This is expected after:
The system will adapt within 2-3 visits as the matching engine learns the new signal baseline.
If legitimate users are being flagged as bots, check:
navigator.webdriver or other WebDriver propertiesReview the bot.type field to understand which detector was triggered and adjust your policy.
If response times exceed 200ms: