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.
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.
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.
PATH_THIRD_THEMES
and URL_THIRD_THEMES
when caching sparkline images