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');
}
}
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;
}