Download the PHP package isapp/statamic-analytics without Composer

On this page you can find all versions of the php package isapp/statamic-analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package statamic-analytics

Google Analytics (GA4) Dashboard

Transform your Statamic Control Panel into a powerful analytics hub. Monitor your site's performance, understand your audience, and make data-driven content decisions without leaving your CMS.

Statamic 5.0+ Statamic 6.0+

Commercial Addon
This is paid software. You may use it for development and evaluation, but a valid license from the Statamic Marketplace is required for production use.


Why This Addon?

Content creators and editors shouldn't need to switch between multiple tools to understand what's working. This addon brings Google Analytics 4 data directly into the Statamic Control Panel, giving your team instant access to the metrics that matter.

Perfect for:


Key Features

πŸ“Š Dashboard Widgets

Beautiful, customizable widgets display your most important GA4 metrics right on the Control Panel dashboard. Get instant visibility into:

πŸ“ˆ Actionable Tables & Charts

Data is presented in clean, readable formats. Tables are sortable, filterable, and export-ready. Charts update dynamically and respond to your selected date ranges.

⚑ Fast & Efficient

Built on the official Google Analytics 4 Data API via the trusted spatie/laravel-analytics package. Data is fetched efficiently with smart caching to keep your Control Panel responsive.

🎨 Native Statamic UI

Every widget and view is designed to feel like a natural part of Statamic. Consistent styling, familiar interactions, and seamless integration with your existing Control Panel experience.

πŸ” Secure Integration

Uses Google Cloud service account authentication for secure, server-to-server API access. No OAuth prompts, no user permissions headachesβ€”just reliable data flow.


What You Get

This addon provides several pre-built widgets and views:

All widgets are configurable through the addon settings interface. Choose which metrics to display, set default date ranges, and customize the charts to suit your workflow.


Installation

Install via Composer:


Configuration

1. Set Up Google Analytics 4 API Access

This addon uses the spatie/laravel-analytics package to connect to GA4. You'll need:

  1. A Google Cloud project
  2. A service account with Analytics API access
  3. A JSON credentials file
  4. Your GA4 Property ID

Detailed setup instructions:
Follow the official Spatie documentation to generate your credentials:
πŸ‘‰ spatie/laravel-analytics setup guide

2. Configure Your Environment

Add these to your .env file:

3. Add Widgets to Your Control Panel

There are two ways to add GA4 widgets to your dashboard:

Option A: Using the Control Panel (Recommended)

  1. Navigate to your Control Panel
  2. Go to Preferences β†’ Widgets
  3. Click Add Widget
  4. Select the GA4 widgets you want to display
  5. Configure widget settings and save

Option B: Manual Configuration via cp.php

Edit your config/statamic/cp.php file and add widgets to the widgets array:

4. Configure Widget Settings

Navigate to Control Panel β†’ Settings β†’ Analytics Settings to customize:


Usage

Once configured, your GA4 data will automatically populate in the Control Panel.

Quick Start Tips

For Content Editors:

For Site Managers:

For Agencies:


Requirements

Requirement 5.x branch 6.x branch
Statamic ^5.0 ^6.0
PHP ^8.1 ^8.2
Laravel ^10.0 ^12.0

Both branches also require:


Technical Details

Statamic Version Support

This addon fully supports both Statamic 5 and Statamic 6.

Because Statamic 5 and Statamic 6 use different front-end stacks, the addon uses different charting engines depending on the CMS version:

Statamic Version Front-end stack Charting library
Statamic 5.x Vue 2 Chart.js (MIT)
Statamic 6.x Vue 3 ApexCharts (MIT)

This ensures native UI integration, long-term compatibility, and optimal performance on each platform.

Built On Trusted Technology

This addon leverages proven, open-source packages:

No Data Storage

This addon does not store, manipulate, or intercept your analytics data. It acts purely as a display layer, fetching data from Google's servers and presenting it within Statamic.

Performance Optimized


Frequently Asked Questions

Q: Does this replace Google Analytics?
A: No. This addon displays data from your existing GA4 property inside Statamic. You still need a GA4 account and tracking code on your site.

Q: Will this slow down my Control Panel?
A: No. Widgets load asynchronously and use caching. Most data requests happen in the background.

Q: Can I customize which metrics are shown?
A: Yes. Use the settings interface in the Control Panel to configure which metrics and charts appear in your widgets.

Q: Do I need to be a developer to set this up?
A: Basic technical knowledge is helpful for the initial Google Cloud setup, but once configured, it's entirely editor-friendly.

Q: Does this work with Universal Analytics (UA)?
A: No. This addon is built specifically for Google Analytics 4. UA has been deprecated by Google.

Q: Can multiple users see the dashboard?
A: Yes. Once configured, Control Panel users can view the GA4 widgets on their dashboards.

Q: Does this show real-time data?
A: Real-time visitor tracking is planned for a future version. Currently, the addon displays historical and recent data with configurable time ranges.


Support & Documentation

Need help?
Open an issue on the GitHub repository for bug reports or feature requests.

Setup assistance:
Refer to the spatie/laravel-analytics documentation for GA4 API credential setup.

Updates & changelog:
Follow the repository for version updates and new features.


Credits & Licensing

Developed by ISAPP as a commercial Statamic addon.

Built with:

Google Analytics and GA4 are trademarks of Google LLC. This addon is not affiliated with or endorsed by Google.


Roadmap

Planned features for future releases:

Have a feature request? Let us know on GitHub!


License

This is commercial software. Purchase a license from the Statamic Marketplace to use in production.

License tiers:

See the Statamic Marketplace for current pricing.


Ready to bring analytics into your Control Panel?
Get Started β†’


All versions of statamic-analytics with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
statamic/cms Version ^6.0
spatie/laravel-analytics Version ^5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package isapp/statamic-analytics contains the following files

Loading the files please wait ...