mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Analytics/Cookies
* don't ask users to consent on GA tracking if we don't use GA tracking
This commit is contained in:
@@ -470,7 +470,7 @@ class PageTemplate
|
|||||||
private function update() : void
|
private function update() : void
|
||||||
{
|
{
|
||||||
// analytics + consent
|
// analytics + consent
|
||||||
if (!isset($_COOKIE['consent']))
|
if ($this->analyticsTag && !isset($_COOKIE['consent']))
|
||||||
{
|
{
|
||||||
$this->addScript(SC_CSS_FILE, 'css/consent.css');
|
$this->addScript(SC_CSS_FILE, 'css/consent.css');
|
||||||
$this->addScript(SC_JS_FILE, 'js/consent.js');
|
$this->addScript(SC_JS_FILE, 'js/consent.js');
|
||||||
|
|||||||
Reference in New Issue
Block a user