diff --git a/composer.json b/composer.json
index 47dde13..691188c 100644
--- a/composer.json
+++ b/composer.json
@@ -13,6 +13,7 @@
"require": {
"php": ">=8.1.0 <8.4.0",
"getkirby/cms": "^3.10.0",
+ "sylvainjule/matomo": "^2.0.0",
"kirbyzone/sitemapper": "^1.2.1",
"mullema/k3-image-clip": "^3.2",
"wearejust/kirby-twig": "^5.0"
@@ -27,9 +28,6 @@
"optimize-autoloader": true,
"allow-plugins": {
"getkirby/composer-installer": true
- },
- "platform": {
- "php": "8.3"
}
}
}
diff --git a/composer.lock b/composer.lock
index 3793cbd..e09b924 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "cbae6775c72f7f216b3cadb214a0fee3",
+ "content-hash": "4d30b2c251476acb970dea1ecb02e8fb",
"packages": [
{
"name": "claviska/simpleimage",
@@ -747,6 +747,51 @@
},
"time": "2024-09-11T13:17:53+00:00"
},
+ {
+ "name": "sylvainjule/matomo",
+ "version": "2.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sylvainjule/kirby-matomo.git",
+ "reference": "ce5da6b1427da225efe3ebc05c3a1a4d6b7781c2"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sylvainjule/kirby-matomo/zipball/ce5da6b1427da225efe3ebc05c3a1a4d6b7781c2",
+ "reference": "ce5da6b1427da225efe3ebc05c3a1a4d6b7781c2",
+ "shasum": ""
+ },
+ "require": {
+ "getkirby/composer-installer": "^1.1"
+ },
+ "type": "kirby-plugin",
+ "extra": {
+ "installer-name": "matomo"
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Sylvain Julé",
+ "email": "contact@sylvain-jule.fr"
+ },
+ {
+ "name": "Sören Engels"
+ },
+ {
+ "name": "Philipp Trenz",
+ "email": "mail@philipptrenz.de"
+ }
+ ],
+ "description": "Matomo helpers, panel area and sections for Kirby",
+ "support": {
+ "issues": "https://github.com/sylvainjule/kirby-matomo/issues",
+ "source": "https://github.com/sylvainjule/kirby-matomo/tree/2.0.1"
+ },
+ "time": "2024-05-04T17:36:22+00:00"
+ },
{
"name": "symfony/deprecation-contracts",
"version": "v3.5.1",
@@ -1426,8 +1471,5 @@
"php": ">=8.1.0 <8.4.0"
},
"platform-dev": {},
- "platform-overrides": {
- "php": "8.3"
- },
"plugin-api-version": "2.6.0"
}
diff --git a/site/blueprints/site.yml b/site/blueprints/site.yml
index 71afc42..180b66e 100644
--- a/site/blueprints/site.yml
+++ b/site/blueprints/site.yml
@@ -4,3 +4,4 @@ title:
tabs:
content: tabs/site_content
seo: tabs/site_seo
+ analytics: tabs/site_analytics
diff --git a/site/blueprints/tabs/site_analytics.yml b/site/blueprints/tabs/site_analytics.yml
new file mode 100644
index 0000000..bafefb7
--- /dev/null
+++ b/site/blueprints/tabs/site_analytics.yml
@@ -0,0 +1,21 @@
+label:
+ en: Analytics
+ fr: Audience
+icon: chart
+columns:
+ - width: 1/4
+ sticky: true
+ sections:
+ sidebar:
+ type: matomo-sidebar
+ link: false
+ - width: 3/4
+ sections:
+ main:
+ type: matomo-main
+ periods:
+ - year
+ - month
+ - week
+ defaults:
+ period: week
diff --git a/site/templates/base.twig b/site/templates/base.twig
index ce7fa57..b259f56 100644
--- a/site/templates/base.twig
+++ b/site/templates/base.twig
@@ -14,16 +14,22 @@
{# JavaScript #}
{% block scripts %}
-
+
{% endblock %}
- {# Umami #}
-