Installation Issues
SDK not loading
SDK not loading
Symptoms:
window.permutiveis undefined- No console messages with debug mode
- Network tab shows 404 for live.js
-
Verify script URL
-
Check for Content Security Policy (CSP) issues
- Ensure loader script runs first The inline loader script must execute before the SDK script loads.
- Check for JavaScript errors Earlier errors may prevent subsequent scripts from running.
Loader script errors
Loader script errors
Symptoms:
- Syntax errors in console
permutive is not definederrors
-
Verify loader script is complete
Ensure the entire loader script is copied correctly:
- Check for quote issues Template engines may escape quotes incorrectly.
- Verify API key and workspace ID Ensure credentials don’t contain special characters that need escaping.
CSP blocking SDK
CSP blocking SDK
Symptoms:
- Console error: “Refused to load the script…”
- Console error: “Blocked by Content Security Policy”
Ad blocker interference
Ad blocker interference
Symptoms:
- SDK loads on some browsers but not others
- Network requests blocked
- Most ad blockers do not block Permutive as it’s a first-party tool
- If blocked, users will still see the site but without personalization
- Test with ad blockers disabled to confirm this is the cause
Tracking Issues
Events not appearing in dashboard
Events not appearing in dashboard
Symptoms:
track()called successfully- Debug mode shows “Event accepted”
- Nothing in Permutive dashboard
- Wait for processing Events may take a few minutes to appear in the dashboard.
- Check date/time filters Ensure dashboard filters include the current time period.
- Verify workspace Confirm you’re viewing the correct workspace in the dashboard.
-
Check consent status
If
consentRequired: true, ensure consent was granted:
Pageview not tracking
Pageview not tracking
Symptoms:
- No Pageview events
- Other events work but not pageviews
-
Verify web addon is called
-
Check consent timing
If using consent, call
consent()beforeaddon('web'): -
Check for duplicate calls
Ensure
addon('web')isn’t called multiple times.
Events discarded with consentRequired
Events discarded with consentRequired
Symptoms:
consentRequired: trueconfigured- Events called but not tracked
- No errors in console
consent({ opt_in: true }) are discarded (not queued).Solution:
Always call consent() before tracking:SPA navigation not tracked
SPA navigation not tracked
User ID changes between sessions
User ID changes between sessions
Symptoms:
- Different user ID on each visit
- User history not persisting
- Cookies being blocked or cleared
- Private browsing mode
- Cookie domain mismatch
-
Check cookie exists
Look for
permutive-idin Application > Cookies -
Verify cookie domain
Ensure domain matches your configuration:
- Check browser settings Some browsers aggressively clear first-party cookies.
Targeting Issues
Empty segments array
Empty segments array
Symptoms:
permutive.segments()returns[]- localStorage keys empty
-
Wait for realtime data
- Verify cohorts exist Check that cohorts are configured in dashboard.
- Confirm user qualifies User must meet cohort criteria to be included.
- Check consent Cohorts require consent to be tracked and calculated.
- Allow processing time New cohort membership may take a few seconds.
Targeting not matching in GAM
Targeting not matching in GAM
Symptoms:
- Segments exist in localStorage
- Targeting set on GPT
- Line items not matching
-
Verify key name
Ensure GAM key is exactly
permutive(case-sensitive). - Check value format Values should be strings, not numbers.
-
Verify targeting in Google Publisher Console
Add
?googfcto URL and check targeting values. - Confirm line item targeting Double-check line item uses correct key-value targeting.
Prebid not receiving cohorts
Prebid not receiving cohorts
Symptoms:
- RTD module configured
- Bid requests missing Permutive data
-
Verify RTD module included
Check Prebid build includes
permutiveRtdProvider. -
Check configuration
-
Add TCF exception if needed
-
Check localStorage
Verify segment data exists in
_pdfps,_papns, etc.
Cohorts not updating
Cohorts not updating
Symptoms:
- User should qualify for new cohorts
- Segments remain unchanged
- Verify events are tracking Check dashboard for incoming events.
- Check cohort rules Ensure user behavior matches cohort criteria.
- Allow processing time Cohort updates may take a few seconds to minutes.
- Refresh page Page reload triggers re-evaluation.
-
Use triggers for real-time
Console Errors
'permutive' is not defined
'permutive' is not defined
Cause: SDK not loaded when method called.Solutions:
- Ensure loader script runs before any
permutive.*calls - Check for script loading errors
- Verify script placement in
<head>
Network request failed
Network request failed
Causes:
- Network connectivity issues
- API endpoint unreachable
- Request blocked
- Check network connectivity
- Verify no proxy/firewall blocking
- Check CSP configuration
- Enable debug mode for details
Invalid configuration
Invalid configuration
Cause: Missing or incorrect API key/workspace ID.Solutions:
- Verify API key from dashboard
- Verify workspace ID from dashboard
- Check for extra whitespace or newlines
- Ensure credentials match environment (production vs staging)
Debug Mode
Enable debug mode to diagnose issues:- SDK initialization status
- Event tracking confirmations
- Segment calculations
- API request/response details
- Error messages
Getting More Help
If you can’t resolve the issue:-
Gather diagnostic information:
- Debug mode console output
- Network tab screenshots
- localStorage contents
- Browser and version
-
Contact support:
- Customer Success Manager
- Technical Services
- Support