Overview
Analytics Integration connects consent management with popular analytics platforms, enabling privacy-compliant tracking of user consent behavior and website interactions.
Supported Platforms
Google Analytics 4 (GA4)
Integration Features:
- Consent event tracking
- Privacy-compliant measurement
- Consent mode integration
- Custom dimension tracking
- Consent banner displayed
- Consent granted/denied
- Consent categories selected
- Consent withdrawal
- Time to consent decision
- Consent status
- Consent categories
- Geo region
- Template variant
- A/B test group
- Event streaming to Segment
- User trait tracking
- Consent state management
- Destination filtering
- Consent Updated
- Banner Interaction
- Preference Changed
- Withdrawal Completed
- Consent status
- Consent timestamp
- Consent categories
- Geo location
- Device information
- User profile updates
- Event tracking with properties
- Consent funnel analysis
- A/B test tracking
- Banner Shown
- Consent Given
- Consent Withdrawn
- Category Selected
- Time Metrics
- Consent level
- Consent date
- Region
- Device type
- Browser info
consentbannerdisplayedconsentbannerinteractionconsentbannerdismissedconsent_grantedconsent_deniedconsent_customizedconsent_withdrawnconsentcategoryacceptedconsentcategoryrejectedconsentcategoryupdatedconsenttimeto_decisionconsentinteractiondurationbannerloadtimeconsentpageviewsconsentscrolldepthconsentexitintent- Enable GA4 integration in SLOS
- Enter GA4 Measurement ID
- Configure consent mode
- Set up custom dimensions
- Test event tracking
- Enable Segment integration
- Enter Segment write key
- Configure event mapping
- Set up user traits
- Test data flow
- Enable Mixpanel integration
- Enter Mixpanel project token
- Configure event properties
- Set up user profiles
- Test tracking
- Rename default events
- Map to existing events
- Create event hierarchies
- Add event prefixes
- Include/exclude properties
- Rename property keys
- Transform property values
- Add custom properties
- Respects user consent choices
- Modifies tracking behavior
- Maintains privacy compliance
- Supports regional requirements
- Granted: Full tracking
- Denied: Limited tracking
- Partial: Category-based tracking
- Remove personal identifiers
- Anonymize IP addresses
- Limit data retention
- Aggregate sensitive data
- GDPR data processing
- CCPA opt-out handling
- LGPD consent requirements
- PIPEDA compliance
- Track template performance
- Measure consent rates
- Analyze user behavior
- Optimize banner design
- Define test variants
- Set traffic distribution
- Configure goals
- Monitor results
- Custom event triggers
- Dynamic property injection
- Conditional event firing
- Event filtering
- Consent acceptance rate
- Average time to consent
- Withdrawal rate by category
- Regional consent patterns
- Template performance
- Consent impact on conversions
- Bounce rate changes
- Session duration effects
- Goal completion rates
- Event frequency analysis
- User journey mapping
- Funnel visualization
- Cohort analysis
- Load time impact
- Event delivery success
- Error rate monitoring
- Platform-specific metrics
- Consent events
- Platform connection status
- Error notifications
- Performance alerts
- Slack notifications
- Email alerts
- External dashboards
- Compliance monitoring
- Platform credentials incorrect
- JavaScript loading issues
- Consent mode conflicts
- Network connectivity
- Verify API keys
- Check browser console
- Test platform dashboards
- Review network requests
- GA4: Check measurement ID
- Segment: Verify write key
- Mixpanel: Confirm project token
- Event queuing delays
- Batch processing
- Platform processing time
- Cache clearing
- Event batching
- Asynchronous sending
- Error handling
- Resource monitoring
- Event success rates
- Response times
- Error frequencies
- Platform limits
- Test Thoroughly: Verify all platforms
- Monitor Performance: Track impact on site speed
- Privacy First: Respect user consent choices
- Regular Audits: Review tracking implementation
- Transparent Tracking: Clear privacy notices
- User Control: Easy opt-out mechanisms
- Data Minimization: Only necessary data
- Legal Compliance: Regional law adherence
- Efficient Tracking: Minimize payload size
- Error Handling: Graceful failure modes
- Resource Management: Background processing
- Monitoring: Performance tracking
- HTTPS-only communication
- API key encryption
- Secure credential storage
- Input validation
- Platform permission management
- User data isolation
- Audit trail logging
- Suspicious activity detection
- No personal data in analytics
- Anonymization techniques
- Retention policies
- Deletion capabilities
- Regular privacy audits
- Data processing records
- User consent verification
- Regulatory reporting
- Adobe Analytics
- Matomo
- Plausible
- Custom analytics
- Platform evaluation
- API documentation review
- Custom code development
- Testing and validation
- Consent Management Overview
- Cookie Banner Templates
- Consent Tracking
- Regional Compliance
- Configuration Guide
Events Tracked:
Custom Dimensions:
Segment
Integration Features:
Events Sent:
User Traits:
Mixpanel
Integration Features:
Events Tracked:
User Properties:
Event Types
Consent Events
Banner Events:
Decision Events:
Category Events:
Performance Events
Timing Events:
Engagement Events:
Configuration
Platform Setup
Google Analytics 4:
Segment:
Mixpanel:
Event Mapping
Custom Event Names:
Property Configuration:
Privacy Compliance
Consent Mode Integration
Google Consent Mode:
Consent States:
Data Minimization
Property Filtering:
Regional Compliance:
Advanced Features
A/B Testing Integration
Variant Tracking:
Test Configuration:
Custom Events
Hook-Based Events:
JavaScript API:
`javascript
// Fire custom consent event
SLOS.consent.trackEvent(‘custom_interaction’, {
action: ‘button_click’,
element: ‘privacypolicylink’,
timestamp: Date.now()
});
`
Reporting & Analytics
Consent Analytics Dashboard
Key Metrics:
Conversion Tracking:
Custom Reports
Event Analysis:
Performance Reports:
API Integration
REST API Endpoints
Analytics Configuration:
`
GET /wp-json/slos/v1/analytics/config
POST /wp-json/slos/v1/analytics/config
PUT /wp-json/slos/v1/analytics/platforms/{platform}
`
Event Management:
`
GET /wp-json/slos/v1/analytics/events
POST /wp-json/slos/v1/analytics/events/custom
GET /wp-json/slos/v1/analytics/events/{event_id}
`
Webhook Support
Real-time Events:
Integration Examples:
Troubleshooting
Event Not Tracking
Common Issues:
Solutions:
Data Not Appearing
Platform-Specific Issues:
Timing Issues:
Performance Impact
Optimization:
Monitoring:
Best Practices
Implementation
Compliance
Performance
Security Considerations
Data Protection
Secure Transmission:
Access Controls:
Privacy Safeguards
Data Handling:
Compliance Monitoring:
Custom Integration
Third-Party Platforms
Supported Platforms:
Integration Process:
Custom Event Development
Event Creation:
`php
// Hook into consent events
addaction(‘slosconsentgranted’, ‘customanalytics_event’, 10, 2);
function customanalyticsevent($consentdata, $userid) {
// Custom analytics logic
customanalyticstrack(‘consentgranted’, $consentdata);
}
`
Property Enhancement:
`php
// Add custom properties to events
addfilter(‘slosanalyticseventproperties’, ‘addcustomproperties’, 10, 2);
function addcustomproperties($properties, $event_name) {
$properties[‘customfield’] = getcustom_value();
return $properties;
}
`
Related Documentation
Share this article
Still need help?
Our support team is ready to assist you with personalized guidance for your workspace.