Skip to content

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Cookieless Request Analytics for TYPO3

TYPO3 14 PHP 8.2+ License: GPL v2+

datamints_analytics counts frontend page views on the server, without cookies, without a JavaScript tracker and without third parties. Raw hits are condensed into daily statistics once a day and shown right in the TYPO3 backend: in the Content > Analytics module, as a chart in the page module and as dashboard widgets. No consent banner is needed for the tracking, and all data stays in your own TYPO3 database.

Analytics module with KPIs, trend and page views chart

Features

  • Server-side tracking via a PSR-15 middleware: no cookies, no client script. Editors who are logged in to the backend are not counted.
  • Privacy by design: visitors are recognised only through a hash of IP and user agent that is re-salted every day. IP addresses are never stored, raw data is deleted after a configurable period (Privacy).
  • Meaningful reports: page views, unique visitors, bounce rate, new vs. returning visitors, referrers, next pages, low-traffic pages, outlier days, a yearly report and the trend compared with the previous period.
  • Detail pages with titles: records shown through RouteEnhancers (news, products, events …) are listed with their record title, not just the page ID – and you can plug in your own resolvers.
  • Breakdowns by device, browser (including the in-app browsers of Instagram, Facebook, TikTok and Snapchat), language and referrer type. Bots are detected and reported separately.
  • Google Search Console (optional): clicks, impressions, CTR, position and search queries per page, imported daily through a service account – no extra library required (Search Console).
  • Fits into the backend: dashboard widgets, a chart above the page module and full dark mode support.
Visitors Google Search Console
Devices, browsers, referrers, languages, new vs. returning, bots Search Console clicks, impressions, CTR and top queries
Dashboard widgets Yearly report
Dashboard with analytics widgets Yearly report with top pages, winners and peaks

All screenshots show generated test data.

Quick start

composer require datamints/analytics
vendor/bin/typo3 extension:setup

Enable tracking per site in config/sites/<site>/config.yaml (it is off by default):

analytics:
  enabled: true

Finally create the scheduler task "Analytics: Aggregation" (e.g. daily at night). The module and the widgets only read aggregated data, so they stay empty until the task has run.

Details, including the installation from the TER: Installation.

Documentation

Topic Contents
Installation Requirements, Composer and TER installation, scheduler tasks
Configuration Site configuration, extension configuration, excluded pages
Backend Analytics module, yearly report, page module, dashboard widgets
Google Search Console Step-by-step connection via service account, backfill, troubleshooting
Privacy What is stored and what is not, visitor hashes, data deletion
Aggregation & data model How raw hits become statistics, database tables
Extending Own record titles for RouteEnhancer detail pages
Development Test data, running the tests, notes on the TYPO3 14 migration

Requirements

TYPO3 14.1 or later, with the system extensions backend, dashboard and scheduler
PHP 8.2 or later (ext-openssl for the Search Console import)
Extension key datamints_analytics
Composer name datamints/analytics

Version 1.x for TYPO3 11.5 is maintained on the 1.x branch.

The backend module and the widgets are currently available in German only.

Known limitations

  • No time on page or scroll depth – that would require a client script.
  • Pages delivered entirely from a cache in front of TYPO3 (static file cache, CDN) never reach the middleware and are not counted.
  • Identical IP and user agent (e.g. identical devices behind one NAT) count as one visitor.

License

GPL-2.0-or-later, see LICENSE.txt.

The bot pattern list Resources/Private/Data/crawler-user-agents.json is taken from monperrus/crawler-user-agents (MIT license, see crawler-user-agents.LICENSE).

Author

Klaus-Peter Seher, datamints GmbH

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages