A Laravel Analytics widget collection for Statamics Control Panel.
This repository contains the code for these widgets. While the code is open-source, it's important to remember that you'll need to purchase a license before using this addon in production. Licenses cost \$5 and can be purchased from the Statamic Marketplace.
Install via the Control Panel or via composer
composer require phpsa/statamic-analytics
follow the instructions from here to enable the analytics,
remember to add the
ANALYTICS_VIEW_ID to your .env file and the json file to
Currently we have 4 widgets available, more will be added based on feedback / requests. To enable a widget edit the
config/statamic/cp.php file and add your widget requirement into the widgets section:
the following are available:
|analytics||totalVisitorsAndPageViews||days (default 10)|
|analytics||topReferrers||days (default 7) max_results (default 10)|
|analytics||mostVisitedPages||days (default 7) max_results (default 10)|
|analytics||topBrowsers||days (default 7) max_results (default 10)|
[ 'type' => 'analytics', 'group' => 'totalVisitorsAndPageViews', 'width' => 50, 'days' => 10 ]
If you discover any security related issues, please email [email protected]il.com instead of using the issue tracker.