The Matomo AddOn provides complete integrat### 4. View Statistics
- Matomo β Overview: Compact statistics for all domains with optional top 5 pages
- Auto-login: Seamless access to Matomo without manual login
- Direct Domain Links: Quick access to specific domain statistics
- Automatic Integration: If Info-Center AddOn is installed
- Permission-based: Only visible for users with
matomo[overview]permission - Live Statistics: Shows today's visitors for top 3 websites
- YRewrite-Synced: Automatically filters to YRewrite domains
- Direct Access: One-click access to full Matomo overview
- Automatic Integration: If Dashboard AddOn is installed
- Permission-based: Only visible for users with
matomo[overview]permission - Extended Statistics: Top 5 websites with today's visitor counts in table format
- Larger Format: 2-column layout for more information
- YRewrite Integration: Automatic filtering to YRewrite domainsof the open-source web analytics platform Matomo into REDAXO 5. It enables easy downloading, installing, and managing of Matomo directly from the REDAXO backend.
- One-click download of the latest Matomo version
- Automatic configuration of URL and path
- REDAXO-native implementation using
rex_socket,rex_file, andrex_dir
- Compact overview page with statistics for all domains
- Top 5 Pages Feature - shows most visited pages of the current week
- Real-time data with automatic refresh (every 5 minutes)
- Automatic Login System for seamless Matomo access
- Direct links to specific Matomo dashboards
- API-based domain management via Matomo API
- YRewrite Integration - automatic filtering and import of YRewrite domains
- Smart duplicate detection - prevents importing existing domains
- Domain deletion - remove domains from Matomo with confirmation
- Tracking code generation for each domain
- Copy-to-clipboard functionality for tracking codes
- Consent manager integration recommendations
- Flexible API settings (timeout, SSL verification)
- Privacy options (IP anonymization, cookie-free tracking)
- Multi-token support (Admin + User Token)
- IP anonymization can be enabled
- Cookie-free tracking available
- Do Not Track support
- Consent manager integration recommended
- Fully translated (German/English)
- REDAXO i18n system integration
- Consistent terminology across all pages
- Install AddOn via REDAXO installer or manually
- Activate AddOn in REDAXO backend
- Access Matomo Setup and perform installation
Under Matomo β Matomo Setup:
- Automatically download and install Matomo
- Or manually configure path, URL, and API token
Under Matomo β Configuration:
- API settings (timeout, SSL verification)
- Tracking options (IP anonymization, cookie-free tracking)
- Configure privacy settings
Under Matomo β Domains:
- Add new domains to Matomo manually
- Import YRewrite domains - select and import domains from YRewrite configuration
- Delete domains from Matomo with safety confirmation
- Display and copy tracking codes
- Follow consent manager recommendations
- Automatic filtering: Overview shows only YRewrite domains (+ default domain)
- Smart import: Select YRewrite domains to import into Matomo
- Duplicate prevention: Already existing domains are marked and skipped
- Domain synchronization: Keep Matomo and YRewrite domains in sync
- Matomo β Overview: Compact statistics for all domains with optional Top 5 pages
- Auto Login: Seamless access to Matomo without manual login
- Direct Domain Links: Quick access to specific domain statistics
For administrative tasks like domain creation:
- Log into Matomo
- Administration β Platform β API β User Authentication
- Copy Admin Token and paste into REDAXO
For statistics access:
- Open User Authentication in Matomo
- Copy User Token (if not available, Admin Token will be used)
For automatic login via "Auto Login" buttons:
- Enter Matomo username and password in settings
- Automatic configuration: The AddOn can automatically set
login_allow_logme = 1in Matomo'sconfig.ini.php - Manual configuration: If automatic setup fails, manually add to
config/config.ini.php:[General] login_allow_logme = 1
Important: The AddOn does not automatically embed tracking codes.
- Use Consent Manager AddOn (recommended: "Consent Manager")
- Copy tracking code from the domains page
- Manually insert into templates or manage via consent manager
- Enable IP anonymization
- Use cookie-free tracking
- Respect Do Not Track
- Use consent manager for cookie consent
api_timeout: Request timeout (10-120 seconds)ssl_verify: SSL certificate verification
anonymize_ip: Anonymize IP addressescookieless_tracking: Cookie-free trackingrespect_dnt: Respect Do Not Track headercookie_lifetime: Cookie lifetime
show_top_pages: Enable/disable Top 5 Pages feature
matomo_user: Matomo username for automatic loginmatomo_password: Matomo password for automatic login
The AddOn uses the Matomo HTTP API for:
- Site management (create, list)
- Statistics queries (visitors, page views)
- Tracking code generation
All HTTP requests are made via rex_socket with configurable timeouts and SSL options.
The AddOn includes a powerful PHP Tracker class for server-side tracking (e.g. for API endpoints, cronjobs, or headless applications). It uses rex_socket and manages the connection automatically.
use FriendsOfRedaxo\Matomo\Tracker;
// 1. Initialize Tracker (automatically uses URL & Token from Config)
// You must provide the Site ID (e.g. 1)
$tracker = Tracker::factory(1);
if ($tracker) {
// 2. Track a simple Page View
// URL is optional (defaults to current URL)
$tracker->trackPageView('Home Page', 'https://example.org/');
// 3. Track an Event
// Category, Action, Name (optional), Value (optional)
$tracker->trackEvent('Contact Form', 'Submit', 'General Inquiry', 1);
// 4. Track a Goal (Conversion)
// Goal ID, Revenue (optional)
$tracker->trackGoal(1, 49.90);
// 5. Site Search
// Keyword, Category (optional), Count (optional)
$tracker->trackSiteSearch('redaxo', 'CMS', 12);
}// Set a User ID (for Cross-Device Tracking)
$tracker->setUserId('user_123');
// Set Custom Dimensions (requires Plugin in Matomo)
$tracker->setCustomDimension(1, 'premium-user'); // Dimension ID 1// 1. Add items to cart/order
$tracker->addEcommerceItem(
'SKU12345', // SKU
'Red T-Shirt', // Product Name
['Clothing', 'Shirts'], // Category (String or Array)
19.99, // Price
1 // Quantity
);
// 2. Track the order
$tracker->trackEcommerceOrder(
'ORDER-2024-001', // Order ID
19.99, // Grand Total
16.80, // Sub Total (optional)
3.19, // Tax (optional)
0.00, // Shipping (optional)
false // Discount (optional)
);The Tracker automatically determines:
- IP Address: Passed to Matomo (requires Admin Token in config)
- User Agent: Taken from current request
- Visitor ID: Generated from IP/UA hash or Cookie
- Time/Date: Current server time
To ensure Server-Side Tracking works correctly, some settings in Matomo might be needed:
- Admin Token: The tracker needs a Token with Write or Admin permission to set the Visitor IP (
cip). This is automatically handled if you entered the Admin Token in the AddOn configuration. - E-Commerce: If you use E-Commerce tracking, you must enable "Ecommerce" for the specific website in Matomo (Measurables > Manage > Edit Site).
- Custom Dimensions: If you use
setCustomDimension(), you must first create these dimensions in Matomo (Administration > Websites > Custom Dimensions). - Site Search: For Site Search to appear in reports, ensure "Site Search" is enabled in the website settings (usually enabled by default).
- Check path and URL in configuration
- Ensure Matomo is correctly installed
- Verify API tokens
- Test Matomo URL in browser
- Check SSL settings for HTTPS
- YRewrite Integration: Full integration with YRewrite AddOn (now required)
- Automatic Domain Filtering: Shows only YRewrite domains in overview (+ default domain)
- Smart Domain Import: Import YRewrite domains into Matomo with selection interface
- Info-Center Widget: Compact Matomo statistics in REDAXO Info-Center (only for users with
matomo[overview]permission) - Dashboard Widget: Extended Matomo statistics in REDAXO Dashboard AddOn (Top 5 websites, table view)
- Domain Deletion: Remove domains from Matomo with safety confirmation
- Smart Duplicate Detection: Prevents importing existing domains
- Complete Internationalization: All texts professionally translated
- Improved UX: User-friendly dialogs and informative status messages
- Clean Architecture: YRewrite as dependency for consistent multi-domain management
- Auto-Login System: Seamless Matomo access without manual login
- Top 5 Pages Feature: Shows most visited pages of the current week
- External Matomo Support: Full integration of external Matomo installations
- Enhanced Overview Page: Extended statistics with trend indicators
- Automatic Configuration: Auto-login can be automatically configured in Matomo
- Improved UI: Consistent panel design and better user guidance
- Namespace Migration: Complete migration to FriendsOfRedaxo\Matomo namespace
- Dashboard Removal: Focus on streamlined overview-based approaches
Project Leads
Daniel Springer
- GitHub: https://github.com/FriendsOfREDAXO/matomo
- REDAXO Community: https://redaxo.org/forum/
- Matomo Documentation: https://matomo.org/docs/
This AddOn is available under the MIT License. Matomo itself is available under the GPL v3 License.
Developed by Friends Of REDAXO
For REDAXO 5.16.1+ | Matomo 4.x/5.x compatible