Statamic Analytics

Statamic Analytics

Statami v3 Packagist

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 storage/app/analytics/service-account-credentials.json

Enable Widgets

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:

type group additional parameters
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)

eg: `

    'type' => 'analytics',
    'group' => 'totalVisitorsAndPageViews',
    'width' => 50,
    'days' => 10

Statamic Analytics example screenshot

Advanced documentation

Laravel Analytics


If you discover any security related issues, please email [email protected] instead of using the issue tracker.