You are here

public function GoogleTagManager::defaultConfiguration in Analytics 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ServicePluginBase::defaultConfiguration

File

src/Plugin/AnalyticsService/GoogleTagManager.php, line 27

Class

GoogleTagManager
Google Tag Manager analytics service plugin.

Namespace

Drupal\analytics\Plugin\AnalyticsService

Code

public function defaultConfiguration() {
  return [
    'container_id' => '',
    'data_layer' => [
      'name' => 'dataLayer',
      'value' => '',
    ],
    'optimize_anti_flicker' => FALSE,
  ];
}