function ga_update_8102 in Googalytics - Google Analytics 8
Add default sample rate setting to configuration.
File
- ./
ga.install, line 67 - Contains ga module installation and update hooks.
Code
function ga_update_8102() {
\Drupal::configFactory()
->getEditable('ga.settings')
->set('sample_rate', 100)
->save();
}