Skip to main content


Initial Setup

After installation, you need to compute your first batch of visitor sessions:
# Rebuild sessions from the last 90 days
php bin/console mautic:analytics:rebuild --rebuild --days=90
This command processes your existing page hits and creates the session data needed for the dashboard widget.

Cron Setup

For real-time analytics, add the session computation command to your cron:
# Run every 5-15 minutes for near real-time data
*/5 * * * * php /path/to/mautic/bin/console mautic:analytics:rebuild
The command runs incrementally by default, only processing new page hits since the last run.

Next Steps

Once installed and the initial data is computed:
  1. Go to your Mautic Dashboard
  2. Click Add Widget
  3. Select Website Analytics from the list
  4. Your analytics data will appear immediately