johnhenry / craft-clicky-analytics
Clicky analytics in the Craft control panel: dashboard widgets, a live visitor feed and a Page Stats field for each entry.
Package info
github.com/john-henry/craft-clicky-analytics
Type:craft-plugin
pkg:composer/johnhenry/craft-clicky-analytics
Requires
- php: ^8.2 || ^8.3 || ^8.4
- craftcms/cms: ^5.0 || ^6.0.0-beta.1
Requires (Dev)
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
- phpstan/phpstan: ^2.2
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-27 15:16:27 UTC
README
Clicky Analytics for Craft CMS
Clicky Analytics puts your Clicky figures in the Craft control panel. When someone asks how a page is doing, open the entry and its visitors and sources are right there. The dashboard widgets cover the whole site, and all of it comes from the Clicky API.
Features
- 21 dashboard widgets: build your own Craft dashboard from Report, Live Visitors, Current Visitors, Overview, New vs Returning, Top Pages, Top Sources, Top Referrals, Top Search Engines, Top Countries, Top Browsers, Top Operating Systems, Top Devices, Top Entry Pages, Top Exit Pages, Top Downloads, Goals, Campaigns, Top Cities, Top Regions and Screen Resolutions.
- Report widget: pick one of 21 metrics and show it as a counter. Ranked reports can also be a bar or pie chart, and visitors or actions a line chart.
- Live Visitors widget: recent visits with the country flag, location, landing page, browser and OS logos, referrer and time on site. You can show new visitors, returning ones or both.
- Country drilldown: open a country in the Top Countries widget to see its cities and regions without leaving the widget.
- Page Stats field: add the "Clicky Analytics Page Stats" field to an entry type's field layout and each entry shows its own visitors, traffic sources and recent visitors in the entry editor.
- Date ranges for each widget: Today, Yesterday, 2 days ago, Last 7/14/28/60/90 days and recent months.
- Colour schemes: change every widget, the field and the charts together in the plugin settings, picking from Clicky Analytics (warm), Ocean (blue), Monochrome, Forest (green) or Berry (purple).
- Layout options: a compact density and a slim bar style, if you'd rather the widgets and the field sat tighter than the default.
- Flags and logos: the country flags and the browser, OS and search engine logos are SVGs served from your own site, so they look the same on every computer.
- Version consolidation: a widget can merge browser and OS versions, so you get one "Google Chrome" row instead of one for each version.
- Open in Clicky: every row links to the matching report in Clicky.
- Tracking code: the plugin can add the Clicky tracking snippet, with its
<noscript>fallback, to every front-end page, so you don't have to paste it into your layout. It leaves it out whiledevModeis on and in previews. - Twig variable: read the same data in your own templates through
craft.clickyAnalytics. If Clicky can't be reached it hands back empty results, so your pages stay up. - Tools for AI agents: from 1.2.0, on Craft 5.12 and later and on Craft 6, Craft's MCP server gets three read-only tools that let an agent read the overview, any ranked report and a single page's stats. They don't hand over any individual visitor data.
- One permission: "View Clicky Analytics data and add its dashboard widgets" decides who sees the widgets, the Page Stats field and the drilldown.
- More than one Clicky site: give each Craft site its own Clicky Site ID and Sitekey in the config file, and pick which one each dashboard widget reports on.
Credits & attribution
Clicky is a trademark of Roxr Software Ltd.. This is an unofficial community plugin and has nothing to do with them. It bundles a few icon sets to identify browsers, operating systems, search engines and countries:
- Country flags: flag-icons (MIT)
- Browser logos: browser-logos (respective trademarks)
- OS & search-engine logos: SVG Logos (respective trademarks)
All product names, logos and brands belong to their owners and are used here only to tell one browser, OS or country from another.
Documentation
The full documentation is at johnhenry.ie/plugins/clicky-analytics/docs.
Requirements
- Craft CMS 5.0 or later
- PHP 8.2 or later
- A Clicky account with API access (Site ID and Sitekey)
Craft CMS 6 is supported from 1.2.0. On Craft 6 you need PHP 8.5, and your project has
to require craftcms/yii2-adapter itself, as the plugin doesn't pull it in. The config file
goes in config/craft/clicky-analytics.php on Craft 6.
Accessibility
How accessible the plugin is, what's been checked and how to report a problem are all in the accessibility statement.
Support
If you need a hand, open an issue on the GitHub Issues page.
License
This plugin is free to use under the MIT License.