public static function matomo()
{
- try {
- $reporting = new \Cubist\Matomo\Reporting('https://v3.stats.fluidbook.com/', 'ebe362f44c01bda1ddedb75d7726ff78');
- print_r($reporting->createSiteIfNotExistsOrReturnId('Fluidbook Y', 'https://fluidbook.y'));
- } catch (Exception $e) {
- print_r($e);
+ 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');
}
}
global $core;
if ($this->book->parametres->stats) {
- $this->config->statsMatomo = wsStats::getMatomoAPI()->createSiteIfNotExistsOrReturnId('Fluidbook #' . $this->book_id, 'https://' . $this->book_id . '.fluidbook');
+ $this->config->statsMatomo = $this->book_id;
} else {
$this->config->statsMatomo = false;
}