You are here

function hook_hotjar_settings_alter in Hotjar 8.2

Alter Hotjar settings.

Parameters

array $settings: Hotjar settings.

1 invocation of hook_hotjar_settings_alter()
HotjarSettings::getSettings in src/HotjarSettings.php
Get all settings.

File

./hotjar.api.php, line 53
Hooks provided by the Hotjar module.

Code

function hook_hotjar_settings_alter(array &$settings) {
  $request = \Drupal::request();
  if ($request
    ->getHost() === 'my.other.host') {
    $settings['account'] = 'other hotjar ID';
  }
}