From a106ca2bd8a4b030dce18c8f886d5beed83c23c2 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 30 May 2022 17:11:39 +0000 Subject: [PATCH] wip #4978 @2 --- inc/ws/Controlleur/class.ws.maintenance.php | 9 ++++++--- inc/ws/Util/html5/master/class.ws.html5.compiler.php | 4 ++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/inc/ws/Controlleur/class.ws.maintenance.php b/inc/ws/Controlleur/class.ws.maintenance.php index b48361b10..e30cdf6bb 100644 --- a/inc/ws/Controlleur/class.ws.maintenance.php +++ b/inc/ws/Controlleur/class.ws.maintenance.php @@ -1850,9 +1850,12 @@ class wsMaintenance public static function matomo() { set_time_limit(0); - $reporting = new \Cubist\Matomo\Reporting('https://v3.stats.fluidbook.com/', 'ebe362f44c01bda1ddedb75d7726ff78'); - for ($i = 24001; $i <= 40000; $i++) { - $reporting->createSite('Fluidbook #' . $i, 'https://' . $i . '.fluidbook'); + $reporting4 = new \Cubist\Matomo\Reporting('https://stats4.fluidbook.com/', '93e4c1a34e3ead33e85a8171dc4fd3ed'); + $reporting5 = new \Cubist\Matomo\Reporting('https://stats5.fluidbook.com/', '93e4c1a34e3ead33e85a8171dc4fd3ed'); +// $reporting = new \Cubist\Matomo\Reporting('https://v3.stats.fluidbook.com/', 'ebe362f44c01bda1ddedb75d7726ff78'); + for ($i = 2; $i <= 40000; $i++) { + $reporting4->createSite('Fluidbook #' . $i, 'https://' . $i . '.fluidbook'); + $reporting5->createSite('Fluidbook #' . $i, 'https://' . $i . '.fluidbook'); } } diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index 3dd1df10f..f3d829951 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -1020,6 +1020,10 @@ class wsHTML5Compiler if ($this->book->parametres->stats) { $this->config->statsMatomo = $this->book_id; + $this->config->statsMatomoServer = 3; + if ($this->book_id >= 21210) { + $this->config->statsMatomoServer = 4 + ($this->book_id % 2); + } } else { $this->config->statsMatomo = false; } -- 2.39.5