From e85021ccdafe32956843a9da326da762b9c37c59 Mon Sep 17 00:00:00 2001 From: Gianfranco Castro Date: Thu, 25 Jan 2024 19:05:21 +0100 Subject: [PATCH 1/2] Add compatibility with Matomo4, see https://developer.matomo.org/4.x/changelog#breaking-changes-in-php-events --- TrackerHostname.php | 2 +- plugin.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TrackerHostname.php b/TrackerHostname.php index aeffe55..17b973e 100644 --- a/TrackerHostname.php +++ b/TrackerHostname.php @@ -15,7 +15,7 @@ class TrackerHostname extends Plugin public function registerEvents() { return array( - 'Piwik.getJavascriptCode' => array( + 'Tracker.getJavascriptCode' => array( 'function' => 'customizeTrackerHostname', 'before' => true, ), diff --git a/plugin.json b/plugin.json index c9e5779..1de54d0 100644 --- a/plugin.json +++ b/plugin.json @@ -4,7 +4,7 @@ "version": "0.1.0", "theme": false, "require": { - "piwik": ">=3.13.0-stable,<5.0.0-b1" + "piwik": ">=4.0.0-stable,<5.0.0-b1" }, "authors": [ { From 65296a835fdd229373b063b7e8df92c5380aaf24 Mon Sep 17 00:00:00 2001 From: Davide Porrovecchio Date: Fri, 26 Jan 2024 09:21:02 +0100 Subject: [PATCH 2/2] Update version compatibility --- plugin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.json b/plugin.json index 1de54d0..aab0c82 100644 --- a/plugin.json +++ b/plugin.json @@ -4,7 +4,7 @@ "version": "0.1.0", "theme": false, "require": { - "piwik": ">=4.0.0-stable,<5.0.0-b1" + "piwik": ">=4.0.0-b1,<5.0.0-b1" }, "authors": [ {