Overview
Privacy feature flags provide comprehensive control over user data visibility and anonymization across the platform. These features help organizations comply with privacy regulations and protect user identities while maintaining platform functionality.Available Features
Anonymize Leaderboard
Anonymize Leaderboard
Key:
Default: Disabled
Category: Privacy
anonymise-leaderboardDefault: Disabled
Category: Privacy
- Masks usernames with pattern: First letter + 8 asterisks (e.g., “j********”)
- Hides profile pictures for other users (shows initials instead)
- Preserves ranking positions and scores
- Users always see their own complete information
- Public competitions with privacy requirements
- Educational environments protecting student identities
- Corporate leaderboards with confidentiality needs
- GDPR compliance for public rankings
Anonymize User Data
Anonymize User Data
Key:
Default: Disabled
Category: Privacy
anonymise-user-dataDefault: Disabled
Category: Privacy
- Leaderboards and rankings
- Post comments and discussions
- User profiles and avatars
- Activity feeds
- Social interactions
- Hidden: Real names, profile pictures, full usernames
- Preserved: User positions, scores, achievements, activity
- Exception: Users always see their own data
Implementation Details
Client-Side Anonymization
Leaderboard Component:Server-Side Data Deletion
For complete GDPR compliance, the platform also supports full user data deletion:Privacy Patterns
Current User Exemption
Users always see their own complete information:Consistent Masking Format
All masked usernames follow the same pattern:- First character visible for recognition
- Eight asterisks for consistency
- Predictable length for UI layout
Visual Indicators
When privacy features are enabled, users see:
- “You” badges on their own content
- Masked usernames for others
- Initials-based avatars instead of photos
- Their full information in their own profile
Configuration Strategies
Maximum Privacy
Leaderboard Privacy Only
No Privacy Features
Compliance & Regulations
GDPR Compliance
Privacy features support GDPR requirements:- Right to Privacy: Anonymization features protect user identities
- Data Minimization: Only necessary data displayed
- Right to be Forgotten: Complete data deletion available
- Consent Management: Users control their data visibility
Educational Privacy (FERPA/COPPA)
Features support educational privacy laws:- Student names and photos can be hidden
- Performance data remains trackable
- Parental controls supported
- Age-appropriate privacy defaults
Corporate Compliance
Support for corporate privacy requirements:- Employee anonymity in competitions
- Confidential performance metrics
- Department-level privacy controls
- Audit trail maintenance
Implementation Guide
User Experience Impact
What Users See
With Privacy Enabled:- Their own complete profile and data
- Masked identities of other users
- Maintained competitive elements (scores, rankings)
- Clear “You” indicators on their content
Maintaining Engagement
Privacy features preserve engagement mechanics:- Competition remains through anonymous rankings
- Social proof via activity without identities
- Achievement celebrations without revealing users
- Progress tracking remains fully functional
Monitoring & Analytics
Privacy Metrics
| Metric | Description | Monitoring Goal |
|---|---|---|
| Anonymized Views | Pages viewed with privacy enabled | Track feature usage |
| User Opt-outs | Users requesting additional privacy | Identify concerns |
| Data Requests | GDPR data access requests | Compliance tracking |
| Deletion Requests | Right to be forgotten requests | Legal compliance |
Audit Logging
Troubleshooting
Some users still visible despite privacy settings
Some users still visible despite privacy settings
Check if users are viewing their own data. The current user exemption always shows personal information.
Inconsistent anonymization across components
Inconsistent anonymization across components
Ensure both privacy flags are properly configured. Some components check both flags.
Performance impact with privacy enabled
Performance impact with privacy enabled
Privacy features have minimal impact. Check React Query cache settings if experiencing slowdowns.
Legal compliance questions
Legal compliance questions
Consult legal counsel for specific regulatory requirements. These features provide tools but not legal advice.
Best Practices
Default to Privacy
Enable privacy features by default for new deployments
Clear Communication
Inform users about privacy protections in place
Regular Audits
Periodically review privacy settings and compliance
User Control
Consider user-level privacy preferences
Technical Architecture
Performance Optimization
Privacy features are designed for minimal performance impact:- Client-side masking uses memoization
- No additional API calls required
- Cached privacy settings (5-minute TTL)
- Efficient string operations for masking
Security Considerations
- Privacy flags fetched securely from server
- No client-side manipulation possible
- Masking applied at render time
- Original data never exposed to client when anonymized
API Reference
Related Resources
GDPR Compliance
Complete GDPR implementation guide
User Data Management
Managing user information
Security Best Practices
Data protection guidelines
Legal Policies
Configure privacy policies

