Skip to content
Snippets Groups Projects
Commit cd1826d0 authored by Igor Biki's avatar Igor Biki
Browse files

ISTWCMS-4707: Removing check for google tag manager module.

parent 0f08f60c
No related branches found
No related tags found
1 merge request!75ISTWCMS-4707 Adding config form, permissions, and route for module.
......@@ -349,15 +349,12 @@ function uw_cfg_common_page_attachments(array &$page) {
$page['#attached']['html_head'][] = [$data, 'uw-google-site-verification'];
}
/** @var \Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler */
$moduleHandler = \Drupal::service('module_handler');
// Adding default UW analytics ids.
$codes[] = 'UA-51776731-1';
// If Google tag manager module is not enabled, and uw_cfg_common module
// has google analytics set.
if (!$moduleHandler->moduleExists('google_tag') && !empty($config->get('uw_cfg_common_ga_account'))) {
if (!empty($config->get('uw_cfg_common_ga_account'))) {
$codes[] = Html::escape($config->get('uw_cfg_common_ga_account'));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment