Skip to main content
Turn raw page hits into meaningful visitor insights. The Analytics Plugin computes visitor sessions from your existing Mautic tracking data and presents them in a comprehensive dashboard widget.

Overview

The Analytics Plugin for Mautic provides a powerful Website Analytics dashboard widget that gives you deep insights into your website visitors. It processes Mautic’s page hit data to compute visitor sessions with rich attribution data.

Key Features

Analytics Dashboard Widget
Website Analytics Dashboard Widget - Part 1
Website Analytics Dashboard Widget - Part 2
A comprehensive dashboard widget with interactive visualizations showing:
  • Key Metrics - Total sessions, bounce rate, page views, average pages per session
  • Trend Charts - Sessions over time, bounce rate trends, hourly and daily distribution
  • Traffic Sources - Organic search, paid search, social, email, AI assistants, direct, referral
  • Page Performance - Top entry pages, exit pages, and referrers
  • UTM Attribution - Campaign, source, and medium breakdowns
  • Audience Insights - Device types, operating systems, browser languages, countries
  • Visitor Identity - Identified vs anonymous visitor breakdown

Traffic Type Detection

The plugin automatically categorizes traffic into these types:
Traffic TypeDescription
Organic SearchGoogle, Bing, DuckDuckGo, and 50+ search engines
Paid SearchCPC/PPC campaigns (detected via click IDs or UTM)
SocialFacebook, Twitter, LinkedIn, TikTok, and 60+ networks
EmailFrom email providers or Mautic campaigns
AI AssistantChatGPT, Claude, Perplexity, and 30+ AI tools
DirectNo referrer (direct visits)
ReferralFrom other websites

Interactive Filtering

Click on any metric in the widget to filter all data by that dimension. For example:
  • Click on “Organic Search” to see only organic traffic
  • Click on a specific country to see visitors from that location
  • Click on a UTM campaign to analyze its performance
Filter state is saved in your browser, so it persists between page loads. Audience Insights
Audience Insights

Requirements

  • PHP 8.1 or higher
  • Mautic 6.0 or higher

How It Works

The plugin processes Mautic’s page_hits table and groups them into visitor sessions:
  1. Hits from the same visitor within 30 minutes are grouped into one session
  2. Each session is enriched with traffic source, UTM data, device info, and location
  3. The dashboard widget queries this computed data for fast, real-time analytics
To keep your analytics up to date, run the session computation command regularly via cron.