CP Analytics

For ExpressionEngine 2 • Current Version: 2.2.3

Purchase for $9

CP Analytics is an ExpressionEngine® accessory which displays an overview of your site’s Google Analytics statistics. The accessory displays quick stats for Today and Yesterday (sessions, pageviews, average pageviews per sessions, and average sessions length), with increased stats for the past 30 days (sessions, pageviews, average pageviews per sessions, average sessions length, bounce rate, percentage of new sessions, top content and top referrers). The 30-day stats also include sparklines to visualize site activity.

You can also optionally display your real time traffic and an interactive 30-day line chart of pageviews and sessions on the control panel homepage. Or, if you use the dashEE module, dashEE widgets are also included for displaying real time traffic and a 30-day or 14-day line chart.

You can also display statistics for your selected profile (per-site) in Panic’s Status Board iPad app, fed directly from your cached CP Analytics data. CP Analytics connects to your Google account using OAuth 2.0 authorization and version 3.0 of the Google Analytics Data Export API.


  • Screenshot
  • Screenshot
  • Screenshot
  • Screenshot


  • ExpressionEngine® 2.4.0 or greater
  • PHP cURL extension with OpenSSL



IMPORTANT! If you have any 1.x version of CP Analytics installed, you must deactivate it (both the accessory and the extension) before uploading version 2.

Upload the included cp_analytics folders to your /system/expressionengine/third_party/ and /themes/third_party/ directories respectively, then activate the accessory and module from the Add-Ons → Accessories or Add-Ons → Modules menu. Then, visit the CP Analytics module control panel to authorize your Google account, and select one of your available account profiles to display.

CP Analytics will display all website profiles which are available to the account you authorize with, in alphabetical order, by domain name.


CP Analytics caches your “yesterday” and “last month” stats daily, and your “today” stats hourly. Real time stats are fetched dynamically every 60 seconds while you are on the control panel homepage.

You can optionally cache the Google Chart sparkline images locally to your third party themes directory or another directory of your choice, using either the module’s Settings screen, or the config array items cp_analytics_cache_path and cp_analytics_cache_url.

The cache my be refreshed at any time using the Clear Cache link in the module control panel.

Theme Integration

CP Analytics includes custom, auto-loaded styles for the Default, Corporate, Nerdery, Sassy, and Republic Labs control panel themes.

If you use a different control panel theme, and wish to customize how CP Analytics looks, add your override styles to a file called your_theme_name.css and upload it to /expressionengine/third_party/cp_analytics/css/.


Visit the official support forums on devot:ee.


  • 2.2.3 (August 4th, 2016)
    • Fixed a bug where CP Analyics could trigger a fatal MySQL error when not previously-installed under certain conditions
  • 2.2.2 (September 16th, 2015)
    • Fixed a bug which was throwing an error in EE < 2.6
  • 2.2.1 (April 9th, 2015)
    • Fixed a bug where a device percentage might not display in the real time stats
  • 2.2 (April 9th, 2015)
    • NOTE: Make sure you visit Add-ons > Modules and click Run Module Updates if you are upgrading from an earlier version of CP Analytics
    • Added option to display real time statistics to the control panel homepage (real time statistics dynamically refresh every 60 seconds)
    • Added a real time statistics widget for the dashEE module
    • Updated some language to reflect changes in Google Analytics naming conventions
    • Removed the option for not displaying labels on the homepage chart
    • Various small design tweaks
  • 2.1 (June 13th, 2013)
    • NOTE: this version will delete your existing settings. Please run module updates after uploading version 2.1.
    • Panic Status Board integration
    • Now using PATH_THIRD_THEMES and URL_THIRD_THEMES when caching sparkline images
    • Now storing settings as JSON
    • More flexible cache data structure
    • Access tokens now request offline access
    • Improved compatibility with EE 2.6
  • 2.0.91 (April 17th, 2013)
    • Compatibility with EE 2.6’s Localize class
    • More consistent profile names to fix Google’s new default profile labelling
  • 2.0.9 (January 29th, 2013)
    • Visual tweaks for the Republic Labs control panel theme
  • 2.0.8 (October 31st, 2012)
    • More consistent caching for users of the same install in different timezones
  • 2.0.7 (July 26th, 2012)
    • Fix for some cases where dates were 1 day off
    • Fix for servers not properly configured for IPv6
  • 2.0.6 (July 5th, 2012)
    • Fix for those running PHP versions prior to 5.2
  • 2.0.5 (June 12th, 2012)
    • Fixed error in uninstall method
  • 2.0.4 (June 7th, 2012)
    • Improved display when using the Sassy CP or Nerdery control panel themes
  • 2.0.3 (May 29th, 2012)
    • Now conforming more strictly with Google’s guidelines for forming requests (preemptive troubleshooting)
  • 2.0.2 (May 21st, 2012)
    • Fixed bug with saving settings for a new MSM site
  • 2.0.1 (May 17th, 2012)
    • Fixed PHP errors when there is no traffic for a particular period
  • 2.0 (May 15th, 2012)
    • CP Analytics is now a paid add-on (but cheap!)
    • Abandoned extension settings in favour of a module
    • Now using v3 of the Analytics Data Export API
    • Now using OAuth 2.0 for authentication
    • Added dashEE widget

Browse more software