stop_measure('set settings fields');
}
- protected function _disabled(){
+ protected function _disabled()
+ {
$this->addSettingField('ambientSound', Hidden::class, $this->__('Ambiance sonore'));
$this->addSettingField('ambientSoundVolume', Hidden::class, $this->__('Volume de l\'ambiance sonore'));
}
$this->_statsFluidbook();
$this->_statsGoogleAnalytics();
$this->_statsGoogleTagManager();
+ $this->_statsMatomo();
$this->_statsTagCommander();
$this->_statsPiano();
$this->_statsCustom();
]);
}
+ protected function _statsMatomo()
+ {
+ $this->addSettingField('section_matomoStats', FormSection::class, $this->__('Matomo'));
+ $this->addSettingField('matomoServer', Text::class, $this->__('URL du serveur Matomo'), [
+ 'prefix' => 'https://'
+ ]);
+ $this->addSettingField('matomoSiteId', Integer::class, $this->__('Site ID'), ['when' => ['matomoServer' => '_not_empty_']]);
+ }
+
protected function _statsGoogleAnalytics()
{
$this->addSettingField('section_gaStats', FormSection::class, $this->__('Google Analytics'));