This commit is contained in:
Gregory Pradun
2022-06-18 00:44:51 +03:00
parent 97ef1d5663
commit a444747fab
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ $scripts = [];
})(window,document,'script','dataLayer','".LC_GTM."');"]; ?>
<?php $scripts[] = ['type' => 'comment', 'source' =>'End Google Tag Manager']; ?>
<?php if(
(isset($_COOKIE['cookie_level']) && in_array($_COOKIE['cookie_level'],['13','123']))
(isset($_COOKIE['cookie_level']) &&(strpos($_COOKIE['cookie_level'], '4') !== false))
|| LC_ALLOW_COOKIE_POPUP == false
):?>
<?php foreach($scripts as $script):?>