Quick Diagnosis Steps
Start with these immediate checks:- Recently added zones - Cache may need clearing
- Module enabled - Verify PureClarity is active
- Zone placement - Confirm widgets/HTML are correctly positioned
- Active campaigns - Check PureClarity admin for campaign status
- Network connectivity - Ensure connection to PureClarity servers
Cache-Related Issues
1. Clear Magento Caches
After adding new zones, specific caches must be cleared for zones to appear: Required cache types to clear:- Layouts - Template structure changes
- Blocks HTML output - Cached HTML content
- Page Cache - Full page caching
- Navigate to System > Cache Management
- Select required cache types
- Choose “Refresh” from Actions dropdown
- Click Submit
Alternatively, use command line:
Cache clearing is essential after any zone-related changes, including widget creation, template modifications, or configuration updates.
2. Disable Cache for Testing
Temporarily disable caching to isolate cache-related issues:- Navigate to System > Cache Management
- Disable Layout, Block HTML, and Page Cache
- Test zone display
- Re-enable caches after testing
Zone Debug Investigation
3. Enable Zone Debug Mode
Use debug mode to visualize zone placement and identify issues:- Navigate to Stores > Configuration > PureClarity > Advanced
- Set Debug Mode to “Yes”
- Save configuration
- Clear layout and block HTML caches
- Visit pages where zones should appear
What debug mode shows:
- Zone placeholders with zone IDs when zones are placed but not populated
- Zone positions for layout verification
- Zone identification for campaign matching
4. Interpret Debug Output
If you see zone debug information:- ✅ Zone placement is correct
- ❌ Zone content isn’t loading
- Next step: Check campaign configuration
- ❌ Zone placement problem
- Next step: Verify widget/HTML configuration
Configuration Verification
5. Check Module Status
Verify PureClarity module is enabled:- Navigate to Stores > Configuration > PureClarity > Environment & Credentials
- Confirm Enabled is set to “Yes”
- Save configuration if changes made
- Clear configuration cache
If module is disabled:
- Zones won’t display regardless of other settings
- JavaScript won’t load for client-side zones
- Server-side processing won’t occur
6. Verify Credentials
Check that connection credentials are correct: Required fields:- Access Key - Must match PureClarity account
- Secret Key - Must be current and valid
- Region - Must match account region (USA/Europe)
- Save configuration with correct credentials
- Run manual feeds to test connection
- Check feed status for authentication errors
- Monitor error logs for connection issues
Widget Configuration Issues
7. Review Widget Setup
Check widget configuration for zone placement issues:- Navigate to Content > Widgets
- Locate PureClarity Zone widgets
- Edit widgets to verify configuration
- Zone ID matches campaign configuration
- Store view assignment is correct
- Layout updates target appropriate pages
- Container selection is valid for theme
- Widget status is enabled
For complete widget setup instructions, see Adding Zones Using Widgets.
8. Validate Layout Updates
Review widget layout updates for proper page targeting: Common layout issues:- Incorrect page selection - Widget targets wrong pages
- Invalid container - Container doesn’t exist in theme
- Theme compatibility - Widget conflicts with theme structure
- Sort order problems - Widget positioning conflicts
- Create simple test widget with basic configuration
- Place on homepage for easy testing
- Clear caches and verify display
- Gradually add complexity to isolate issues
HTML Zone Issues
9. Verify HTML Syntax
For zones added via direct HTML integration: Check HTML syntax by display mode: Client-side mode:- Wrong mode syntax - Using client-side HTML in server-side mode
- Typos in attributes - Misspelled data attributes
- Missing semicolon - Client-side syntax requires trailing semicolon
- Incorrect zone ID - Mismatch with campaign configuration
10. Template Integration Issues
Check template file modifications: Validation steps:- Verify template compilation - No syntax errors
- Check file permissions - Templates are readable
- Confirm template hierarchy - Correct template inheritance
- Test template logic - Conditional statements work correctly
- Syntax errors preventing compilation
- Incorrect template paths - Files in wrong locations
- Theme conflicts - Customizations conflict with theme updates
- PHP errors - Logic errors in template modifications
Campaign Configuration
11. Verify Campaign Setup
Check PureClarity admin for campaign configuration: Campaign checklist:- Campaign is active and published
- Zone IDs match widget/HTML configuration
- Targeting rules include your test pages
- Content is available for recommendations
- Scheduling allows current display
- Create simple test campaign with basic zone
- Use easily identifiable content
- Test on staging environment first
- Monitor campaign analytics for activity
12. Check Data Requirements
Ensure sufficient data exists for recommendations: Data requirements:- Product feed completed successfully
- Category feed sent if using category recommendations
- User data available for personalization
- Historical orders for behavioral recommendations
- Check feed status in Magento dashboard
- Review feed logs for completion
- Verify data in PureClarity admin
- Test with different recommendation types
Network and Performance Issues
13. Test Network Connectivity
Verify connection to PureClarity servers: Browser testing:- Open browser developer tools
- Visit page with zones
- Check Network tab for PureClarity requests
- Look for failed requests or timeouts
- Firewall blocking PureClarity domains
- DNS resolution problems
- SSL certificate validation issues
- Timeout settings too restrictive
14. Performance Considerations
Check for performance-related zone issues: Performance factors:- Page load speed affecting JavaScript execution
- Server response time for server-side zones
- Memory limitations during zone processing
- Third-party conflicts with other JavaScript
- Test on fast connection to isolate network issues
- Disable other extensions temporarily
- Monitor server resources during zone loading
- Use simple zone configurations for testing
Advanced Troubleshooting
15. JavaScript Console Errors
Check browser console for JavaScript errors: Common JavaScript issues:- Script loading failures - PureClarity JavaScript not loading
- Conflicts with other scripts - JavaScript errors preventing execution
- Browser compatibility - Unsupported JavaScript features
- Content Security Policy restrictions
- Open browser developer tools
- Check Console tab for errors
- Look for PureClarity-related error messages
- Test with different browsers
16. Server-Side Debugging
For server-side mode implementations: Server-side troubleshooting:- Check PHP error logs for processing errors
- Verify template rendering logic
- Test server-side requests to PureClarity
- Monitor server performance during zone processing
Resolution Workflow
Systematic Approach
- Clear caches - Start with cache-related fixes
- Enable debug mode - Visualize zone placement
- Verify configuration - Check module and credentials
- Test widgets/HTML - Validate zone placement code
- Check campaigns - Confirm PureClarity admin setup
- Test connectivity - Verify network communication
When Each Step Resolves Issues
- Cache clearing → Zones appear after recent changes
- Debug mode → Identifies placement vs content issues
- Configuration fixes → Resolves module or credential problems
- Widget/HTML fixes → Corrects placement issues
- Campaign fixes → Resolves content delivery problems
- Connectivity fixes → Solves network-related issues
Prevention and Best Practices
Development Workflow
- Test in staging before production deployment
- Clear caches after any zone-related changes
- Use debug mode during development
- Document zone placements for team reference
Monitoring Setup
- Regular cache maintenance schedule
- Zone performance monitoring
- Campaign analytics review
- Error log monitoring for zone issues
When to Contact Support
Contact PureClarity support when:- Systematic troubleshooting doesn’t resolve issues
- Network connectivity problems persist
- Complex campaign configuration needed
- Custom implementation requires assistance
- Debug mode screenshots showing zone placement
- Browser console error messages
- Campaign configuration details
- Recent changes to site or configuration
Related Resources
Zone Setup Guides
- Adding Zones Using Widgets - Widget-based zone placement
- Adding Zones Using HTML - Direct HTML integration
- Zone Debug Mode - Debug mode usage
Configuration References
- Environment & Credentials - Basic configuration
- Configuration Mode - Client-side vs server-side
- Dashboard Overview - System monitoring
Other Troubleshooting
- Products Not Updating - Data synchronization issues
- Feed Troubleshooting - Feed-related problems
