Analytics/Cookies

* don't ask users to consent on GA tracking if we don't use GA tracking
This commit is contained in:
Sarjuuk
2025-10-02 17:23:54 +02:00
parent bd1f139c2e
commit 6d86f880f4

View File

@@ -470,7 +470,7 @@ class PageTemplate
private function update() : void
{
// analytics + consent
if (!isset($_COOKIE['consent']))
if ($this->analyticsTag && !isset($_COOKIE['consent']))
{
$this->addScript(SC_CSS_FILE, 'css/consent.css');
$this->addScript(SC_JS_FILE, 'js/consent.js');