Download the PHP package klickmanufaktur/statamic-umami-analytics without Composer

On this page you can find all versions of the php package klickmanufaktur/statamic-umami-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-umami-analytics

Statamic Umami Analytics

Reusable Statamic addon for showing Umami analytics inside the control panel.

Features

Installation

Install as a Composer path repository while developing locally:

Then run:

Configuration

Publish the config or set environment variables directly.

Umami Cloud

Self-hosted with bearer token

Self-hosted with login

Dashboard Widget

The addon ships a compact CP dashboard widget (handle umami_analytics) showing the key metrics (page views, visitors, visits, bounce rate) plus an optional mini chart. Enable it in your app's config/statamic/cp.php under widgets:

The widget links through to the full Umami dashboard and respects the same configuration (API credentials, periods, dashboard URL) as the rest of the addon.

Tracking Script

Add the {{ umami }} tag to your layout (e.g. right before </head>) to render the front-end tracking script:

This outputs:

The script URL is derived from dashboard_url (or api_url) by default. Set UMAMI_SCRIPT_URL to override it, e.g. when the tracking script is served from a different host than the API/dashboard.

Tracker attributes

Configure the data-* behaviour flags under tracking (see tracker configuration):

[!IMPORTANT] Auto-derivation reads that environment's own app.url, so a staging deployment would allow-list its own staging host and track itself. If staging/preview environments exist, set UMAMI_TRACKING_DOMAINS explicitly to the production domain in every environment's .env (not just production) so only hits from the real domain are ever recorded.

Entry Tab

By default, the addon injects a Zugriffe tab into the pages collection.


All versions of statamic-umami-analytics with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
statamic/cms Version ^6.0
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 klickmanufaktur/statamic-umami-analytics contains the following files

Loading the files please wait ...