function matomo_update_8101 in Matomo Analytics 8
Add new disable cookies setting to Matomo default configuration.
File
- ./
matomo.install, line 81 - Installation file for Matomo Analytics module.
Code
function matomo_update_8101() {
$config_factory = \Drupal::configFactory();
$config = $config_factory
->getEditable('matomo.settings');
$config
->set('privacy.disablecookies', FALSE);
$config
->save(TRUE);
}