Troubleshooting
Common issues and solutions for CookieFast implementation.
Banner Not Showing
Issue: Banner doesn't appear on page load
Possible Causes:
-
Property is inactive
- Check dashboard → Properties → Status
- Ensure property is marked as "Active"
-
Incorrect API key
- Verify API key matches dashboard
- Check for typos or extra spaces
- Ensure
data-api-keyattribute is set correctly
-
Domain mismatch
- Banner only works on registered domain
- Check property settings for correct domain
- Subdomains are automatically supported
-
User is outside EEA
- Non-EAA visitors don't see the banner (auto-accept)
- Test with VPN or EU location
- Check console for
auto_accept_usevent
-
Consent already given
- User may have already consented
- Clear cookies:
cookiefast_consent - Try incognito/private browsing
-
JavaScript errors
- Open DevTools → Console
- Look for errors blocking execution
- Check network tab for failed script load
Scripts Not Executing
Issue: Analytics or marketing scripts don't run after consent
Possible Causes:
-
User rejected category
- Check which categories user accepted
- Analytics scripts need "Analytics" consent
- Marketing scripts need "Marketing" consent
-
Invalid JavaScript syntax
- Check dashboard script configuration
- Test scripts in browser console first
- Look for syntax errors
-
Script URLs blocked
- Check DevTools → Network tab
- Verify third-party scripts load
- Check for CORS issues or ad blockers
-
Order of execution
- Some scripts depend on others loading first
- Reorder scripts in dashboard if needed
Consent Not Persisting
Issue: Banner reappears on every page load
Possible Causes:
-
Cookies disabled
- User browser blocks cookies
- Private/incognito mode
- Third-party cookie restrictions
-
Domain issues
- Cookie set for wrong domain
- Subdomain mismatch
- HTTPS/HTTP mismatch
-
localStorage cleared
- Browser extensions clearing data
- User clearing site data
- Browser in private mode
You can run this test:
// Check if cookies workdocument.cookie = "test=1; path=/";console.log('Cookies enabled:', document.cookie.includes('test=1'));// Check localStoragetry {localStorage.setItem('test', '1');console.log('localStorage works');} catch (e) {console.error('localStorage blocked:', e);}
Performance Issues
Issue: Banner slows down page load
Possible Causes:
-
Synchronous loading
- Missing
asyncattribute on script tag - Blocking page rendering
- Missing
-
Large analytics scripts
- Too many third-party scripts
- Heavy marketing tools loading
-
Network latency
- CDN not responding quickly
- Geo-detection API slow
Possible Solution: Preconnect to CookieFast CDN as follows
<!-- Always use async --><scriptasyncsrc="https://cdn.cookiefa.st/cookiefast.js"data-api-key="your-api-key"></script><!-- Preconnect to CDN for faster loading --><link rel="preconnect" href="https://cdn.cookiefa.st">
Cookie Settings Button Not Working
Issue: Clicking "Cookie Settings" link doesn't reopen banner
Possible Causes:
-
Wrong element ID
- HTML element ID must be exactly
cookiefast-banner-trigger - Case-sensitive
- No typos
- HTML element ID must be exactly
-
Element not clickable
- Your CSS hiding element
- Z-index issue
- JavaScript error preventing click handler
-
Script not loaded
- CookieFast script failed to load
- Script loaded after element rendered
Correct implementation examples:
<!-- Correct installation --><span id="cookiefast-banner-trigger" style="cursor: pointer;">Cookie Settings</span><!-- Works with any element --><button id="cookiefast-banner-trigger">Manage Cookies</button><!-- Can be styled --><a href="#" id="cookiefast-banner-trigger" class="footer-link">Cookie Preferences</a>
Geo-Detection Not Working
Example Issue: US visitors see banner (should be auto-accepted for non-EEA)
Possible Causes:
-
VPN or proxy
- User appears to be in different location
- Corporate proxy masking location
-
API failure
- ipapi.co request failed
- Rate limit exceeded (free tier)
- Network error
-
Cache issue
- sessionStorage has wrong location
- Old cached location data
Analytics Not Tracking
Issue: Events not appearing in CookieFast dashboard
Possible Causes:
-
Incorrect API key
- Using wrong property API key
- API key belongs to different property
-
Network blocked
- Firewall blocking requests
- Ad blocker preventing tracking
- CORS issues
-
Property deleted
- Property was deleted from dashboard
- API key no longer valid
Multiple Banners Appearing
Issue: More than one banner shows on the page
Possible Causes:
-
Duplicate script tags
- Script included multiple times
- In both head and body
- In layout and page templates
-
Multiple properties
- Different API keys on same page
- Testing with wrong configuration
Solution:
# Search for duplicate scripts in your codegrep -r "cookiefast.js" your-project-folder/
Known Issues
- Internet Explorer: Not supported (use modern browser)
- Opera Mini: Limited support (proxied browsing)
Getting Support
Before Contacting Support
- Check console for errors
- DevTools → Console
- Look for red errors
- Verify network requests
- DevTools → Network
- Filter by "cookiefa.st"
- Check status codes
- Test in incognito mode
- Rules out extension interference
- Fresh consent state
- Try different browser
- Isolates browser-specific issues
Contact Support
Email to: support@valkev.tech
Include:
- Property ID (get it from your dashboard)
- Website URL
- Browser and version
- Console errors (screenshot)
- Steps to reproduce issue
Response time: Within 24 hours
