After installing the SDK, verify that events are being tracked and data is flowing correctly.Documentation Index
Fetch the complete documentation index at: https://docs.permutive.com/llms.txt
Use this file to discover all available pages before exploring further.
Quick Verification
Debug Mode
Debug mode provides detailed logging of SDK activity. Enable it by adding the query parameter to your URL:loggingEnabled: true in the object at the end of the tag:
Debug Output
With debug mode enabled, you’ll see console messages for:- SDK initialization status
- User ID and session information
- Events being tracked
- Cohort/segment data
- API requests and responses
- Addon initialization
Checking localStorage
The SDK stores data in localStorage. Open Developer Tools > Application > Local Storage and look for these keys:| Key | Purpose |
|---|---|
permutive-id | User ID |
permutive-consent | Consent status |
permutive-session | Session data |
_psegs | Current segments (cohorts) |
_pdfps | DFP/GAM segments |
_papns | AppNexus segments |
_prubicons | Rubicon segments |
Checking Network Requests
In Developer Tools > Network tab, filter bypermutive to see SDK requests:
| Request | Purpose |
|---|---|
live.js | SDK script load |
/track | Event tracking |
/v2.0/* | API requests |
Successful Event Tracking
A successful track request shows:- Status:
200or202 - Response includes event acknowledgment
Verification Checklist
Use this checklist to verify your integration:SDK Loading
SDK Loading
-
permutiveobject exists onwindow -
live.jsloads without errors (check Network tab) - No Content Security Policy errors in console
- Debug mode shows “SDK initialized” message
User Identity
User Identity
-
permutive-idkey exists in localStorage - User ID is consistent across page loads
- If setting identity,
identify()call completes
Event Tracking
Event Tracking
- Pageview event fires on page load
- Debug mode shows “Event accepted: 1/1”
- Network tab shows successful
/trackrequests - Events appear in Permutive dashboard
Cohorts/Segments
Cohorts/Segments
-
_psegskey exists in localStorage -
permutive.segments()returns array of cohort IDs - Cohorts update after qualifying behavior
Ad Platform Integration
Ad Platform Integration
- Platform-specific segment keys exist (e.g.,
_pdfpsfor GAM) - Ad requests include Permutive targeting
- Debug mode shows addon initialization
Console Commands
Use these commands in the browser console to verify SDK state:Common Verification Issues
No debug output
No debug output
Problem: Adding
?__permutive.loggingEnabled=true shows no messages.Solutions:- Verify the SDK loader script is on the page
- Check that
live.jsis loading (Network tab) - Look for JavaScript errors that might block SDK
- Try clearing browser cache and reloading
Events not appearing in dashboard
Events not appearing in dashboard
Problem: Debug mode shows events accepted but nothing in dashboard.Solutions:
- Wait a few minutes - there may be processing delay
- Verify you’re viewing the correct workspace
- Check the event date/time filters in dashboard
- Confirm API key matches the workspace
Empty segments array
Empty segments array
Problem:
permutive.segments() returns empty array.Possible causes:- User hasn’t qualified for any cohorts yet
- Real-time data hasn’t loaded - use
ready('realtime')callback - No cohorts are configured in dashboard
- Consent not granted (if
consentRequired: true)
User ID changes between sessions
User ID changes between sessions
Problem: Different user ID on each visit.Possible causes:
- Cookies are being blocked or cleared
- Private/incognito browsing mode
- Cookie domain mismatch
- Third-party cookie blocking (SDK uses first-party, so this is rare)
CORS errors
CORS errors
Problem: Network requests fail with CORS errors.Solution: This usually indicates a configuration issue. Contact support with:
- Your domain
- API key (first few characters)
- Screenshot of the error
Testing Specific Features
Testing Pageview Tracking
Testing Identity
Testing Triggers
Dashboard Verification
In your Permutive dashboard:- Events - Verify events are appearing with correct properties
- Sources - Check your website appears as an active source
- Cohorts - Verify users are qualifying for expected cohorts
- Activations - Check that cohorts are being sent to ad platforms
Production Verification
Before launching to production:- Remove any test/debug code
- Verify
loggingEnabled: false(or omitted) in production config - Test on multiple browsers (Chrome, Safari, Firefox, Edge)
- Test on mobile devices
- Verify consent flow works correctly (if applicable)
- Check page load performance impact is acceptable
- Validate ad targeting is working correctly
Getting Help
If verification fails:- Use the Chrome Extension for a visual overview of event requests, cohort membership, and ad targeting
- Check the Troubleshooting Guide
- Gather debug output and network logs
- Contact your Customer Success Manager or technical-services@permutive.com
Next Steps
Pageview Tracking
Configure pageview tracking
Event Tracking
Track custom events
Identity Management
Set up user identity
Google Ad Manager
Configure ad targeting