You are here

function ga_update_8103 in Googalytics - Google Analytics 8

Add default site speed sample rate setting to configuration.

File

./ga.install, line 77
Contains ga module installation and update hooks.

Code

function ga_update_8103() {
  \Drupal::configFactory()
    ->getEditable('ga.settings')
    ->set('site_speed_sample_rate', 1)
    ->save();
}