diff options
| author | Debulois <quentin@debulois.fr> | 2022-05-09 20:03:42 +0200 |
|---|---|---|
| committer | Debulois <quentin@debulois.fr> | 2022-05-09 20:03:42 +0200 |
| commit | 105b825923ce03fc43eacb0575212fe52336ce34 (patch) | |
| tree | 109e0736a1b196f2d43f7ffcb8538e04bf20bcea /Template/login.php | |
| parent | 588c4ceb78fae443ca8f9446d256f5474a3bf66a (diff) | |
Mis en place du RGPD
Diffstat (limited to 'Template/login.php')
| -rw-r--r-- | Template/login.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Template/login.php b/Template/login.php index 4558cbf..d91306a 100644 --- a/Template/login.php +++ b/Template/login.php @@ -22,6 +22,12 @@ $_SESSION["src"] = basename(__FILE__, ".php"); <?php echo('<html lang="'.$_SESSION["lang"].'">'.PHP_EOL); ?> <!-- Balise contenant les metadata --> <head> +<?php +if (isset($_COOKIE["RGPD_ACCEPT"]) && $_COOKIE["RGPD_ACCEPT"]) { + echo(' <!-- Google analitycs --> + <script async src="https://www.googletagmanager.com/gtag/js?id=G-YK3Q3ES11T"></script> + <script src="/Static/Js/googleAnalitycs.js"></script>'); +}?> <?php require_once(dirname( __FILE__ )."/Include/incl_global_header.php"); ?> <?php echo(' <link href="/Static/Css/login.css" rel="stylesheet">'.PHP_EOL); ?> <?php require_once(dirname( __FILE__ )."/Include/".$_SESSION["lang"]."/title.php"); ?> |
